mekentosj/podofo

Compact write-mode and ISO PDF

Opened this issue · 0 comments

jsonn commented

While verifying PDF-A compliance of documents, I stumbled across PoDoFo's default output mode violating the ISO specs. The VeraPDF rule with reference is: https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-619-1

The code in question is:

if( (eWriteMode & ePdfWriteMode_Clean) == ePdfWriteMode_Clean )

The easiest solution would be to just drop the conditional and the size impact should be pretty small.