Desktop Products:

Process Automation:

Software Development:

PDF til Word konverterer Kunder

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.

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

      //Call Convert to start the job.

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

      //Check the report
      SolidFramework.Pdf.Reports.PdfAReport report = converter.Report;



©2000-2018 Solid Documents Limited - med enerett