Tobias, PdfStamper.addSignature() uses PdfStamper[Imp].addAnnotation which in contrast to PdfWriter.addAnnotation immediately calls addToBody. Thus the signature annotation is immediately written to disk and your changes are ignored.
Regards, Michael. -----Original Message----- From: Tobias van Treeck [mailto:[email protected]] Sent: Tuesday, March 03, 2009 3:12 PM To: Post all your questions about iText here Subject: [iText-questions] Modify Signature Field Hi, i am using the newly added addSignature(...) Method but somehow i can't add/change any attributes/flags of the field. What am i doing wrong? -------------------- PdfFormField field = stamper.addSignature("Sig1",1,150,50,200,100); field.setMappingName("Mapping Name!"); field.setValueAsString("Value"); -------------------- After that was not working i added the field again: super.stamper.addAnnotation(field,page); But no change. Any hints? Thanks ToM -- Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
