Ulrich Eck wrote: > in the Catalog the fields are stored in an Hash which hides the real > structure of the pdf - right ?
I wouldn't put it that way. The catalog dictionary has an entry /AcroForm and the value of that entry is (a reference to) the form dictionary. This form dictionary has an entry /Fields which corresponds with an array of field dictionaries. In such a field dictionary there's an entry /T with the partial name of the field. "Partial" because there could be kids: a field dictionary can have an entry named /Kids that contains another array of fields. So you could have a root field "person" in the /Fields array. And fields "name" and "email" in the /Kids array. Resulting in two fields with full names person.name and person.email One way to do the checks you want, is to go through these objects in PdfReader (with getCatalog, getAsDict, getAsArray,...) and check if there are two fields in the same array with the same value for /T. Note that having two fields with an identical name isn't illegal in PDF; you could have perfectly good reasons to have two fields with the exact, same name. However: you can't have two fields with the same name and different content. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
