PDF/A-1b Documents pdf/a Compliant false after signing with CLI #79
-
Hej @MatthiasValvekens , i'm creating for test purposes a blank pdf/a-1b file
install verapdf for check compliance
check compliance with verapdf: success
sign it with pyhanko
check compliance again, now false
The problem seems to be described in https://docs.verapdf.org/validation/pdfa-part1/ Rule 6.9-4 Is it possible to fix that to preserve PDF/A-1b-compliance? Best Regards, Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Thomas, Thanks for another detailed report! First, as a general disclaimer: as stated on the Known Issues page, I'm not currently actively trying to align pyHanko with PDF subsets like the various PDF/A flavours, PDF/UA and PDF/X. I try not to do things that run counter to what the subsets are designed to do, but full compatibility is not really a priority at the moment. FWIW, I currently don't own copies of the subset standards, so take what I'm about to say with a grain of salt (going off memory here). To your question: this is sort of expected given the way pyHanko generates invisible signatures. Historically, ISO 19005-1 (the standard that defines PDF/A-1) has a "bug", in that it requires appearance streams for invisible annotations as well, which is kind of pointless. That issue was corrected in later parts of ISO 19005. Because of the nature of PDF/A as an archival format, the "fix" wasn't backported to PDF/A-1. I could add a CLI switch to add a dummy appearance for invisible signatures, but I don't want to make that the default behaviour (I can elaborate on why, if you want). Does that sound workable? Hope that helps :) PS: If you're really keen on preserving compatibility with PDF/A-1, then arguably signing with PAdES is already out of the question, because PAdES is only relevant for PDF 1.7 and PDF 2.0, while PDF/A-1 is defined in terms of PDF 1.4. :) |
Beta Was this translation helpful? Give feedback.
Hi Thomas,
Thanks for another detailed report!
First, as a general disclaimer: as stated on the Known Issues page, I'm not currently actively trying to align pyHanko with PDF subsets like the various PDF/A flavours, PDF/UA and PDF/X. I try not to do things that run counter to what the subsets are designed to do, but full compatibility is not really a priority at the moment. FWIW, I currently don't own copies of the subset standards, so take what I'm about to say with a grain of salt (going off memory here).
To your question: this is sort of expected given the way pyHanko generates invisible signatures. Historically, ISO 19005-1 (the standard that defines PDF/A-1) has a "bug", in that it r…