On 23/09/2011 15:53, Massa Alfonso wrote:
I'm sorry for misunderstanding,
You're even confusing us more now.
My task is put a xml document into any PDF file
You can add any XML document as an "attachment annotation" or as an "embedded file" into any PDF (regardless whether or not the PDF is a flat PDF, a PDF with an AcroForm form, or a PDF with an XFA form). You can use iText to do so (chapter 16).
However: you can't use XFA data to fill out any PDF file.If the PDF is a flat PDF: how on earth would any tool know where to put the data? If the PDF is an AcroForm: you'd need to parse the XML and hope the names of the AcroForm fields match the tag names of your XFA dataset. If the PDF is an XFA form: then you can inject the XFA data, provided that the schema of the form corresponds with the schema of the data.
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
