At 7:32 PM +0100 2/18/03, El Druidos wrote:
I want to extend this engine to be able to receive an ArrayList of
templates whith an arrayList of Bean and merge everything to have one
PDF containing all the templates and all the data.

My problem is that when I parse the first template with the first
data, the parser adds metadata automaticaly to the Document and opens
it itself, so when I try to come a second time on the Document I get:

ExceptionConverter: com.lowagie.text.DocumentException: The document
has been closed. You can't add any Elements.
I would just create each document individually, and then once all created, you can then just merge them together using the PdfCopy() functionality. It won't much more memory than doing it the other way and won't require modifications to the XML->PDF code.


Leonard
--
---------------------------------------------------------------------------
Leonard Rosenthol <mailto:[EMAIL PROTECTED]>
Chief Technical Officer <http://www.pdfsages.com>
PDF Sages, Inc. 215-629-3700 (voice)
215-629-0789 (fax)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to