I'm trying to find a way to lock a signed and certified PDF for modification using iText in a way that viewers like Abode Reader DC tell me the document is not open for modification like this
(which I can do if I sign the document using Adobe) using PDF version 1.7 and iText version 7.1.6.
When I certify and sign my pdf however, I end up with this:
During a process, this PDF is first signed with a certification signature with the certification level set to form filling PdfSigner.CERTIFIED_FORM_FILLING
.
After that the PDF is to be digitally signed by any number of people.
I've tried placing the certification signature and setting the certification level to PdfSigner.CERTIFIED_NO_CHANGES
after signing. This breaks all signatures other than the certification signature.
I've also tried to 'lock' the file with a password, but this also didn't have the desired effect.
Is there any way to lock a pdf file after the last signature has been placed using the iText library so that the first message shows after signing and certifying?