pdfid
pdfid copied to clipboard
DOC: Usage example within Python
I would like to check a lot of PDF files for the following:
- Do they have attachments?
- Do they have active content (see SO question)?
- Are they conformant to PDF/A or other standards (see stack exchange question)?
Is that possible with pdfid? Could you add an example how to use pdfid within Python code?
I just copied this code from the page listed in the readme, I have absolutely no idea.
If you want to use it as a library, I strongly recommend you to look at the code directly, it is what I did for my use case there: https://github.com/CIRCL/PyCIRCLean/blob/master/filecheck/filecheck.py#L460