zaki huda wrote:
I was looking at the data merging example. Is there any way to create
a single document instead of multiple documents ( five nos. in the
example)?
Is there anyway to append to the FileOutputStream?
I have tried fs =new FileOutputStream(file + ".pdf",true);, but
XmlParser.parse(document, "x.xml", tagmap); is creating new documents
all the time.
I do this in my applications.
Depending on the needs, I use one of these two solutions:
1)
- merge the data first with different PDFs as result
- concat the PDFs using PdfCopy
2)
- override SAXiTextHandler so that it ignores the root tag
- open the document
- parse every XML with a different tagmap
- close the document once the iteration is done
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions