On 03/22/12 14:17, Zhang.Xun-An wrote: > Here is a useful example. I have solved my problem by reference the example. > > Thanks all for the helps. > >> 2. You have an interactive form that is based on AcroForm technology. >> >> The PDF created with Open Office as described in section 6.3.5 is such a >> form. By adapting the code sample from the book ( http://1t3xt.be/?107 ) >> >you'll be able to inspect the form. However, this code won't return any >> field if possibility > > Hi Xun-An,
Are you saying that by modifying the example, http://1t3xt.be/?107 , you were able to fill the form fields? I'm a bit puzzled because that example just prints the values and types of fields. After looking further at AcroFields.java, I'm wondering if: public boolean setField(String name, String value, String display) throws IOException, DocumentException {...} would fulfill your needs. The comments above the code suggest that maybe it would: /** * Sets the field value and the display string. The display string * is used to build the appearance in the cases where the value * is modified by Acrobat with JavaScript and the algorithm is * known. -regards, Larry ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. 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
