Posted By

alexedy on 08/01/12


java pdf signature itext

Versions (?)

Get a pdf signature with iTExt 5.3

 / Published in: Java

This is a code snippet that retrieves the signatures from a pdf document and the reason for them. It does that in approximately 200ms for one signature.

  1. PdfReader reader = new PdfReader("c:\\sss.pdf");
  2. AcroFields fields = reader.getAcroFields();
  3. for (String signame : fields.getSignatureNames()) {
  4. System.out.println(signame);
  5. PdfDictionary sig = fields.getSignatureDictionary(signame);
  6. System.out.println(sig.getAsString(PdfName.REASON));
  7. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: DenialSmith on September 30, 2019

And what integration can be done with different other software?:) I often use e-signature for my needs and often use a third-party application, do you think it is possible to customize someone else's software to fit your needs?

You need to login to post a comment.