Hello folks,

I am trying to add a blank signature field to an existing PDF document. When I 
use following code to achieve my requirement, it removes every thing from the 
PDF file and add only a blank signature into the PDF.

Can you please tell me the solution?

//=============================
com.lowagie.text.Document obj_doc = new com.lowagie.text.Document();
FileOutputStream obj_fos = new FileOutputStream
(m_objPDFSig.m_objInputPDFDocument.getAbsolutePath());
com.lowagie.text.pdf.PdfWriter obj_pdfWriter = 
com.lowagie.text.pdf.PdfWriter.getInstance(obj_doc, obj_fos);
obj_pdfWriter.setOutputIntents(m_objPDFSig.getPDFReader(), true);
com.lowagie.text.pdf.PdfAcroForm obj_pdfAcroForm = obj_pdfWriter.getAcroForm();
obj_doc.open();
obj_pdfAcroForm.addSignature(strName, LLX, LLY, URX, URY);
obj_doc.close();
//=============================

Regards,
Faisal




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to