Home >Java >javaTutorial >How Can I Add Blank Pages to a Digitally Signed PDF without Invalidating the Signature?
Adding Blank Pages to Digitally Signed PDFs with iText and Preserving Signatures
Inserting an empty page at the end of a digitally signed PDF using iText remains a common requirement. However, a significant concern arises: does this operation invalidate the existing signatures?
Allowed and Disallowed Changes
To understand the impact of this operation, it's essential to refer to Adobe's technical white paper on digital signatures. Here, Adobe clarifies the allowed changes that do not void signatures in certified or signed documents.
Certified vs. Signed Documents
Within certified documents, changing page content is always prohibited, regardless of the allowed actions. For uncertified documents, page content changes are also disallowed. Thus, adding a page, which alters page content, presents a challenge.
Possible Solution
Unfortunately, iText does not provide a direct solution to append a page without invalidating signatures. However, the following workarounds may be considered:
Note: Remember that even allowed changes (including page templates) must be applied incrementally to retain signatures. Failure to do so can irreparably break the signature.
The above is the detailed content of How Can I Add Blank Pages to a Digitally Signed PDF without Invalidating the Signature?. For more information, please follow other related articles on the PHP Chinese website!