2

There are various PDF standards:

  • PDF/A: PDF/A-1a, PDF/A-2a or PDF/A-3a
  • PDF/UA
  • potentially more

I want to check with Python if a given PDF file follows any of those.

I have seen veraPDF which seems to do what I need, but I have thousands of PDF files in a complex directory structure and I want to get statistics for a subset of those. Hence I want to perform this check with Python.

2 Answers 2

0

QuickPDF Library from Foxit could do this, even the free Lite version.

0

Perhaps it was not there when the question was asked, but veraPDF has a command line interface:

The veraPDF command line interface is the best way of processing batches of PDF files. It’s designed for integrating with scripted workflows, or for shell invocation from programs.

You could use any scripting language of your choosing to run veraPDF CLI and parse its output. The documentation has examples on how to do validation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.