Marc janvier <marc-janvier <at> sab2i.com> writes: > - In conclusion i open the PDF file, i can see my changes in the xfa > dom, but not on the screen. > > What is the problem ?? is it a bug of iText ? >
No, it's not a bug. If I'm right, the problem is that iText only changes the DOM, not the rest of the PDF. LCD forms are a mixture of PDF Stuff and XML Stuff. iText has no idea how to update the PDF side of things to match the XML. Having said that: there /might/ be a way to fix this. There's an XFA setting you can use that tells Reader/Acrobat to generate all the PDF Stuff to match the XML. Lets see if I can dig it up... Aha. Here's a trimmed down section of <config> that should (or at least "used to") tell Acrobat/Reader/whatever to render the PDF Stuff for you: <config xmlns=\"http://www.xfa.org/schema/xci/1.0/\"> <acrobat> <acrobat7> <dynamicRender>required</dynamicRender> </acrobat7> </acrobat> </config> I yanked out quite a bit of XML there, some if it may be relevant. I investigated porting our PDF forms to XFA a while back, but we ended up staying with AcroForms instead... So I know just enough about XFA to get into trouble. ;) You may have to remove some or all of the existing PDF in order to get the "dynamicRender" to work. It's also possible that Acrobat 8 & 9 will ignore the contents of the <acrobat7> tag. I really don't know. --Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::disclaimer<Cardiff> DisCard; ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
