How to detect if existing PDF is PDF/A conformant

Is there a way to detect if an existing PDF file conforms to PDF/A? I see several different ways to make a PDF conform to one of the PDF/A standards, but we need a way to detect if a file already conforms so we don't try to alter it.

Thanks,

Michael Whalen

I believe I've figured out how to do this using the Document's Metadata collection looking for the items "pdfaid:part" and "pdfaid:conformance". If there's a better way, please let me know, but otherwise I'll just use that.

Hi Michael,

Thanks for your inquiry. You can easily validate PDF/A conformance using Validate() method of Document class. Please check following documentation link for details/code snippet. Hopefully it will serve the purpose.

  • [Validate PDF document for PDF/A 1A and PDF/A 1B standards](http://www.aspose.com/docs/display/pdfnet/Validate+PDF+Document+for+PDF+A+Standard+%28A+1A+and+A+1B%29)

Please feel free to contact us for any further assistance.

Best Regards,