Программы для рабочего стола:

Автоматизация:

Разработка программного обеспечения:

 
Конвертер PDF в Word Пользователи
 

Solid Framework Code Sample

This is a concise sample to help get started with Solid Framework SDK

Validate PDF/A files

To validate a PDF file we will use the SolidFramework.Converters.PdfToPdfAConverter object.

Validate PDF/A files

Click to play Code Walk Through Video

Steps for using the PdfToPdfAConverter object

  1. Import the trial Developer License:


    License.Import(new StreamReader(@"C:\Users\Joe\license.xml"));

  2. Locate the PDF files using OpenFileDialog:


    OpenFileDialog OpFile = new OpenFileDialog();
    //show only PDF Files
    OpFile.Filter = "PDF Files (*.pdf)|*.pdf";

    if (OpFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    {
    ...

  3. Define strings to manage opening files:


    string PdfFullPath = OpFile.FileName;

  4. Validate the file using PDFtoPDFaConverter:


    ...
     //Construct a PdfToPdfAConverter object.
    using (PdfToPdfAConverter converter = new PdfToPdfAConverter())
    {
      //Add files to convert.
      converter.AddSourceFile(PdfFullPath);

      //Set the converter to only validate
      converter.ValidateOnly = true;

      //Call Convert to start the job.
      converter.Convert();

      //Call the Conversion Result
      IConversionResult result = converter.Results[0];

      //Check the report
      SolidFramework.Pdf.Reports.PdfAReport report = converter.Report;
      converter.Report.Save(@"C:\Documents\pdfa_report.xml");

    }
    ...

 


Карта сайта
©2000-2017 Solid Documents Limited - Вcе права защищены.