How to digitally sign a PDF (or other document) in Java?

What libraries can be used to digitally sign documents in Java?

+4
source share
3 answers

iText is probably the library of the highest quality PDF files that I have seen, both commercial and open source, and it can absolutely be used to sign PDF documents.

+6
source

Since PDF has explicit support for digital signatures, the process of signing them is different from what you may have to use for β€œanother document,” as you already indicated .

If you have a document format that does not support digital signature, "embedded", you can transfer it to another format that supports digital signatures, such as S / MIME. Support for BouncyCastle S / MIME is fine.

+2
source

There is a section on the iText website specifically to address this scenario.

+1
source

All Articles