Hi Paulo,

I tried it and same exception on below line.

          obj_pdfWriter.addAnnotation(signature);

If I do 

          obj_pdfStamper.addAnnotation(signature, a_iPageNum);

Then null pointer exception occurs as:

//=============================
java.lang.NullPointerException
at com.lowagie.text.pdf.PdfStamperImp.addAnnotation
(PdfStamperImp.java:897)
at com.lowagie.text.pdf.PdfStamperImp.addAnnotation
(PdfStamperImp.java:948)
at com.lowagie.text.pdf.PdfStamper.addAnnotation(PdfStamper.java:375)
//=============================

Can you please send me some sample code to add blank signature field inside 
existing PDF.

Regards,
Faisal

--------- Paulo Soares Message ---------
That exception says it all. Go to PdfAcroForm.addSignature() source and
copy what's in it. The result will be a PdfAnnotation that you can add
to the doc with obj_pdfStamper.addAnnotation(annot).




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to