I have experienced some problems using concat. In my application, I read several PDF files and concat them.
The flow is as follows: a. JSP page calls servlet b. In doGet method of the servlet, I call a private method to execute the code that concats the PDF files (The code used is very similar to the concat_pdf.java example, except that a ByteArrayOutputStream is used instead of a FileOutputStream as the output stream for the PdfCopy object) c. In the finally clause of the private method, the PdfCopy and Document objects are closed d. The byte array output stream is written to the servlet output stream. e. The servlet output stream is flushed. I receive the following results: a. The required PDF pages are displayed. b. When I click on the Email button in the Plugin: -- A popup window is displayed, requesting selection of either sending a copy or sending a link. -- After selecting the "Send Copy" option, a new mail window is opened -- The subject field in the email is filled, BUT the displayed PDF is not included as an attachment. c. When I click the Save button and the displayed pages are saved to the disk: -- If I open the saved file in the Acrobat Reader (not plugin) in some cases Acrobat Reader "hangs" and the pages are not displayed. In other cases the pages are displayed but when I close the Acrobat Reader, all application windows that displayed PDF pages (when the Acrobat Reader was opened) are "cleared" - they are blank and do not display the PDF pages. The next time I access a PDF page through the plugin, it behaves as the plugin is being accessed for the first time (the Acrobat logo is displayed and api are loaded). My intuition is that something is not being closed properly. This issue is urgent. Please assist. Thanks Bennie Saidel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions