Free Support Forum -

Convert PDF to PDFA


I want to convert pdf file to PDF-A
what “log.xml” in below code looks like?
would you like to give me details or example about log.xml?

Document pdfDocument = new Document("input.pdf");

//Convert to PDF/A compliant document

pdfDocument.Validate("log.xml", PdfFormat.PDF_A_1A);

pdfDocument.Convert("log.xml", PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);

//save output document



Thanks for using our products.

The log.xml file generated as a result of Validation or conversion process contains information related to any errors which might occur during conversion process. In case you are facing any issue while converting PDF file to PDF/A, please share the source PDF document and the resultant PDF/A, so that we can test the scenario at our end.