Hello, As I have read in some posts I've created a blank signature field called 
'keyfield': 
PdfFormField sig = PdfFormField.createSignature(stamper.getWriter());
sig.setWidget(fieldposition, null);
sig.setFlags(PdfAnnotation.FLAGS_PRINT); 
sig.put(PdfName.DA, new PdfString("/Helv 0 Tf 0 g"));
sig.setFieldName(keyfield);
sig.setPage(page);
stamper.addAnnotation(sig, page);  Then after pdf manipulation and form filling 
the document needs to be automatically signed.with iText but I don't know how 
to achieve this. It's possible to get the "PdfSignatureAppearance" linked to 
'keyfield' blank signature field previously created? 
As I have read, I know that I will have to do a 'preclose' to calculate 
document size before 'close' SignatureAppearance, but I haven't found any 
constructor like:
 
PdfSignatureAppearance tSignatureAppearance = tStamper.getSignatureAppearance 
("keyfield"); // get 'keyfield' signature appearance
 
It's necessary to fill the blank signature field just after it has been created 
with 
PdfStamper tStamper = PdfStamper.createSignature(tReader,tOutStream,'\0');
as is explained everywhere?
http://itextpdf.sourceforge.net/howtosign.htmlhttp://www.mail-archive.com/[email protected]/msg34083.htmlhttp://www.mail-archive.com/[email protected]/msg17968.htmlhttp://answers.suziana.com/2006/12/12/re-computing-the-signature-size-before-signing-2.html
 
 
Thanks a lot!
 
Ismael Fortuny
_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to