Hi ,
I am using Itext 5.1.2 for digitally signing my pdf documents. I am able to
insert the signature successfully in appropriate place if I know the exact page
number. The page number to insert the signature will vary in different pdf
documents.
The only way I know where to insert the signature is to find out the Unique
string("Signed by Issuer") in the pdf document and the page number where it is
present. So that I can use the below code and pass the page number value
dynamically.
Kindly guide me in finding a string in a pdf document and the pagenumber where
it is present..
FileInputStream f=new FileInputStream(PDF file name);
PdfReader reader = new PdfReader(f);
PdfStamper stamper = PdfStamper.createSignature(reader, new
FileOutputStream(dest), '\0');
PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
appearance.setVisibleSignature(new Rectangle(102, 457, 270, 490),page
number,"test");
Thanks & Regards,
Swaminath Natarajan,
GT Global Derivatives Thunderhead Development,
Desk - +44-2075080609
Mob - +44-7550474227
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php