DFG
DFG

Reputation: 2217

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

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

Upvotes: 3

Views: 8052

Answers (3)

erickson
erickson

Reputation: 269627

Because PDF has explicit support for digital signatures, the process for signing them is different than what you might have to use for "another document", as pointed out already.

If you have a document format that doesn't have digital signature support "built-in", you can wrap it with in another format that supports digital signatures, such as S/MIME. BouncyCastle's S/MIME support is alright.

Upvotes: 2

Brian Agnew
Brian Agnew

Reputation: 272207

The iText website has a section specifically addressing this scenario.

Upvotes: 1

cgp
cgp

Reputation: 41381

iText is probably the highest quality PDF manipulation library I've seen commercial or open source, and it absolutely can be used to sign PDF documents.

Upvotes: 6

Related Questions