Niklas Pettersson wrote:
Hi list!
I have created a java class (servlet) that uses iText to generate and
outputs a PDF. What I would like to do now is to create a
class/servlet that will use the previous class to batch generate
individual PDF which then are concatenated into one huge PDF. What is
the best strategy to do this? I obviously need to read the PDF stream
from the writer in the generating class somehow…
Write the separate PDFs to memory (ByteArrayOutputStream),
then use PdfReader and PdfCopy to concatenate them.
http://itextdocs.lowagie.com/tutorial/general/copystamp/#pdfcopy
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions