Tobias, Getting back that field allows you to reference it from elsewhere, thus it makes sense to have it returned.
Of course, anyone can try and mark it as not yet saved, manipulate it and add it again as annotation. Or of course, try to change the code to have annotations remain changeable after being added to the document. I'm sure, though, that there was some reason for immediately writing annotations to disk when using the stamper, maybe memory considerations... Regards, Michael. -----Original Message----- From: Tobias van Treeck [mailto:[email protected]] Sent: Tuesday, March 03, 2009 4:28 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Modify Signature Field Hi Michael, but why does the addSignature() Method return the signature field if it can't be changed? Then void would make more sense ... Thanks, ToM > 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----- > 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? -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 ------------------------------------------------------------------------------ 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
