Hi, I'm trying to use iText to retrieve information such as font, font size, coordinates of fields in a PDF form. Here's what I did.
// _stamper is an instance of PdfStamper. AcroFields formFields = _stamper.getAcroFields(); HashMap fieldHash = formFields.getFields(); jp.ujihara.java.util.Collection fields = fieldHash.values(); jp.ujihara.java.util.Iterator fieldIterator = fields.iterator(); while (fieldIterator.hasNext()) { AcroFields.Item field = (AcroFields.Item) fieldIterator.next(); //what should I do now? } I used AcroFields.getFields() to get a HashMap of fields in a form. Then I used HashMap.values() to get a Collection of the fields. Then I iterate through the Collection. In each iteration, I first got a AcroFields.Item that represents a field. But then I don't know how to get the information (font, font size, coordinates) I want about the field. I guess I have to use AcroFields.Item to get dictionaries of a field and lookup the dictionaries by proper PdfName. Am I correct? Does anybody know how to do that? What PdfName should I use? Thanks, Gary Wu ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions