Hello all, We've recently tried using a newer government form in our Web Application, and it seems that iText is returning some weirdly formatted names when we retrieve the fieldname from the FieldInformation object using the getName() method. Right now we have a couple of issues: a) The field names before were "fieldName" now we are getting "F[0].P[0].fieldName[0]" b) The string returned is sorta-kinda like UTF-16, but it cannot be parsed properly as such because the period character is not a correct UTF-16 character. If you get the field name and then do .getBytes() you can clearly see that it is not correct: [... , 0, 48, 0, 93, 46, ... ] ~= "0].", the 46 should have an extra leading empty byte. c) iText is also inserting zero length non breaking spaces (\uFEFF) characters at strange places, namely at the beginning of the string and after each period.
Please not that when I say "iText" I mean it very liberally and only because I don't know who else to blame... we <3 iText, we really do. It might be that we are using an old version (1.4.3), but I don't see how that could be related (I've tried looking through source code changes). Optimally, we would not like to upgrade to a new version since the code is already in production and we only need to support one new form. Right now we are dealing with these issues manually, but my guess is that there is something clearly amiss. Thank you, David -- View this message in context: http://www.nabble.com/PRAcroForm.FieldInformation-Names-in-newer-versions-of-PDF-tf3943095.html#a11184858 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
