Some PDFs use encryption or digital signatures to control access and establish document authenticity. These features affect how PDFSanitize can process the file, so they should be understood before beginning sanitization.
Encryption and digital signatures serve different functions. Encryption restricts access to document content, while a digital signature allows compatible software to detect changes to the signed document.
Encrypted and password-protected PDFs
PDFSanitize can identify encrypted PDFs during analysis, but it cannot currently sanitize their contents. This includes password-protected documents that remain encrypted at the PDF level.
When analysis detects encryption, PDFSanitize records the encrypted state and does not complete the deeper inspection available for an unencrypted document. If the file is included in a sanitization batch, it is skipped and can display Encrypted – skipped.
To sanitize the document, first produce an unencrypted copy using an authorized PDF application and the necessary credentials or permissions. You can then add that copy to PDFSanitize and perform the normal analysis and sanitization workflow.
Removing password protection does not itself remove metadata, comments, attachments, form data, or other unwanted PDF features. The unencrypted copy should still be analyzed and sanitized using an appropriate profile.
Digitally signed documents
A digital signature is associated with the content of the signed PDF. Changing the document after signing, including through metadata removal or other sanitization, invalidates its existing digital signature.
PDFSanitize can analyze signed PDFs and identifies the presence of digital signatures during inspection. When you attempt to sanitize a signed document, the application displays a warning explaining that the signature will be invalidated.
If you continue, PDFSanitize creates a separate sanitized output, while the original signed document remains unchanged. The sanitized copy should be treated as a new version rather than as a document retaining the original valid signature.
For example, an organization may need to keep an originally signed report in its records while preparing a sanitized reference copy for a customer. The two files serve different purposes, and their signature status should not be confused.
Sanitizing a signed PDF
If the document is signed, review the warning before proceeding. Continue only when it is acceptable for the resulting document not to retain the original signature’s validity.
If the sanitized version must also be digitally signed, complete sanitization and verification first, then use the appropriate signing application or procedure to apply a new signature.
Signing the sanitized PDF afterward changes its file contents and therefore changes its SHA-256 fingerprint. If fingerprints are important to your workflow, keep the appropriate records for both the verified sanitized output and any subsequently signed version.
PDFs containing both encryption and signatures
A PDF may be both encrypted and digitally signed. In that case, encryption prevents PDFSanitize from sanitizing the file until an authorized unencrypted copy has been created.
Producing that copy may affect the existing digital signature, depending on the steps involved. Examine the signature status of the resulting document before deciding how it should be distributed or retained.
For important documents, preserve the original when necessary and distinguish it clearly from the unencrypted working copy and the final sanitized output. This avoids confusing encryption removal, signature validation, and PDF sanitization as though they were the same operation.
