Hi Olivier. I know, the document.close() statement is first called after the response is returned. Now I got a new problem see "How to make Internet Explorer showing my pdf..."
Thanks anyway! Erik ----- Original Message ----- From: "Olivier Lafontaine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 29, 2003 12:29 AM Subject: [iText-questions] Merge PDF-documents from byte[] to new byte[] and/or servlet response... > Hi Erik, > I've had the same problem, and since I can't find an answer to the problem > on any group, here is a hint : > > finalOutStream.writeTo(out); > out.flush(); > pdfMerger.close(); > > > This code will strip the final lines of your PDF from out because the last > lines are written in Document.close()(in your case, when pdfMerger.close() > executes). Do : > > > > pdfMerger.close(); > out.flush(); > finalOutStream.writeTo(out); > > And everything will work fine. > > > > > Olivier Lafontaine > _________________________________ > Olympia ASD inc. > > > Web : http://www.olympia-asd.com ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
