Marc janvier wrote: > Hello, > > I use 'iText' in order to generate a PDF document. > To do so, I use a dynamic template PDF in which I fill the fields with > the XFA form object. > > Here is the method I use : > > - With this object, I retrieve the XML representation of the form via > the DomDocument. > - I search from the DomDocument the fields named 'field' and I create > nodes with my string of caracters. > - I update the form > - I get my fields filled.
OK, so you're replacing the XFA in an existing PDF. > The problem is I'd like to use the same method to insert a table > obtained from the PdfPTable. I don't understand. What PdfPTable are you talking about? Do you mean there's a table in the existing PDF? If so, it's not a PdfPTable, but some lines and some text drawn onto a page. > The question is : > May I obtained a XML representation of a PdfPTable ? What do you mean? What PdfPTable? There are no PdfPTables in a PDF file. Not even in PDF files that are created using iText's PdfPTable class. You'll have to be more clear. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ 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
