Thanks for the quick response. I have the latest addition of iTextinAction as
well.

but I still seem to be having issues. Unfortunately I'm not currently using
a development environment so all I get is a blank white screen whenever
there are errors. It has to do with the code below. 

response.setContentType("application/pdf");
Document document = new Document();
Document document2 = new Document();

ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ByteArrayOutputStream buffer2 = new ByteArrayOutputStream();

// HERE I CREATE THE 1st part

// new reader with the PDF just created
PdfReader reader = new PdfReader(buffer.toByteArray());

// 2nd reader with pdf
PdfReader reader2 = new PdfReader(new FileInputStream(Path+"test.pdf"));


PdfCopyFields copy = new PdfCopyFields(document2, buffer2);
copy.addDocument(reader);
copy.addDocument(reader2);
copy.close();

PdfReader reader3 = new PdfReader(buffer2.toByteArray());

PdfStamper stamper = new PdfStamper(reader3, response.getOutputStream());
stamper.close();
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Append-pdf-to-one-created-by-ByteArrayOutputStream-tp2279726p2279843.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to