On 8/10/2010 14:43, djdjdj wrote: > For me, there is a bit of a disconnect to that logic. For example, if I'm > creating a web form and want to clear the value of a field in a web form I > certainly wouldn't delete the field and recreate it but would instead set > the value to an empty string.
That is: if you're talking about a Text field. What you say isn't true for a Button field. Suppose you want to replace the icon on a button field, than you have to getNewPushbuttonFromField() and replacePushbuttonField() as is done in this example: http://itextpdf.com/examples/iia.php?id=156 Why do you need to copy the field, throw away the original field and then add the copied field? Because there's more to a button than just a /V value. As replacing a button is a more common request than replacing a signature field, convenience methods were added to iText. There are no such convenience methods (yet) to "empty" a signature field. > Similarly, if I'm clearing a value of a form > field in a pdf why would it make sense to delete the whole field instead of > simply clearing the field's value? I should check ISO-32000 to see what keys are important in the signature dictionary. Did you look inside the PDF? Aren't there any other keys (other than /V and /AP) left in the signature dictionary? And also: if you remove the /AP value, you throw away the visual appearance of the signature, won't that be a problem? ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php