Well wouldn't be nice that iText provides some wrapper classes to extract fillable form fields as I stated earlier rather than parsing the dictionaries our selves or atleast a function which gives us the list of Form Fields and there types i.e. check box, text field, list, radio button etc and user can then use this information to parse the necessary dictionaries to get values just like iText have functions to get empty signature fields and filled signature field functions.
At the moment using iText one needs to write a small parser to check whether a particular field is of what type and then extract values from it which require thorough PDF field dictionary understanding. Regards, Wahaj "Paulo Soares" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Use AcroFields to get that info mainly AcroFields.getFieldPositions(). Getting the field default values, field type, etc, is trivial by reading the dictionary at AcroFields.Item.merged. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wahaj > Sent: Monday, January 31, 2005 7:46 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Accessing Form fields inside PDF document > > Hi, > > I am trying to read form fields e.g. combo boxes, text > fields, checkboxes etc from a pdf document. I have checked > the dumpfields and listFields sample which gives me the name, > dictionary information etc of the fields. > > I need to know whether there are any functions to get field > location and type without parsing the dictionaries our > selves. Ideally some function e.g. getTextFieldsinfo etc > which returns an object containing the field name, type (text > field, combo box, radio button), default values etc instead > of parsing the dictionaries that would be similar to the > addComboBox function of PdfAcroForm where we simply call the > function to create the fields rather than specifying the dictionaries. > > > Regards, > Wahaj > > > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions