Hello,
I have been working on this for a while now with no success. Can someone
please help me out with this?
Currently this works and I use it to stamp a single PDF:
...
PdfReader pdfTemplate = new PdfReader("Template.pdf");
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfStamper stamper = new PdfStamper(pdfTemplate, out);
stampPdf(guest, stamper); //includs close stamper
pdfTemplate.close();
return out;
I want to change it to allow for multipe guests, I thought i could put that
into a loop, I have tried several ways with no luck, such as:
...
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfStamper stamper = new PdfStamper(pdfTemplate, out);
for(Guests guest : getAllCurrentGuests())
{
stampPdf(guest, stamper);
}
stamper.setFormFlattening(true);
stamper.close();
pdfTemplate.close();
return out;
I have also looked at PdfCopy with no luck
Thanks
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Merge-PDF-stampers-tp3810736p3810736.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
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