Return to Snippet

Revision: 58755
at August 1, 2012 15:53 by alexedy


Initial Code
PdfReader reader = new PdfReader("c:\\sss.pdf");
		AcroFields fields = reader.getAcroFields();
		for (String signame : fields.getSignatureNames()) {
			System.out.println(signame);
			PdfDictionary sig = fields.getSignatureDictionary(signame);
			System.out.println(sig.getAsString(PdfName.REASON));
		}

Initial URL


Initial Description
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.

Initial Title
Get a pdf signature with iTExt 5.3

Initial Tags
java

Initial Language
Java