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 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions