1T3XT info
Thu, 26 Jun 2008 10:01:45 -0700
Demling, Peter wrote: > Thanks for any tips; and I’m serious about that ice-cream! J I compared the XFA stream in both documents: [1] in the PDF that was filled using iText [2] in the PDF that was filled manually in Adobe Reader and then saved. [1] <?xml version="1.0" encoding="UTF-8"?> <xdp:xdp timeStamp="2008-06-26T13:25:45Z" uuid="76ae0ec7-3fb6-45a8-9c3e-672542aa72e5" xmlns:xdp="http://ns.adobe.com/xdp/">...</xdp:xdp> [2] <?xml version="1.0" encoding="UTF-8"?> <?xfa generator="XFA2_4" APIVersion="2.6.7120.0"?> <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2008-06-26T13:25:45Z" uuid="76ae0ec7-3fb6-45a8-9c3e-672542aa72e5">...</xdp:xdp> Apparently when you save such a form using Adobe Reader, an extra processing instruction is added. It was that processing instruction that made iText choke and throw a NullPointerException. I uploaded the change to SVN. With the next iText release (scheduled for the second week of July), you'll be able to use your original code; meaning that even form.getField("MyTextField") will return the correct result (instead of 'null'). You'll find a PayPal button on the 1T3XT BVBA about page: http://www.1t3xt.com/about/ My eldest son likes strawberry ice cream; my youngest son will prefer chocolate ice cream ;-) -- 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 iText-questions@lists.sourceforge.net 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