As pointed out by Paolo, doing it from a jsp page is a bad idea. You should convert it to a servlet.
The rest of this post is off-topic for this list. If you have an existing PDF you want to send you just need to obtain the bytes. 1. Open the pdf file (just as you would open any binary file). 2. Set the header, content type, content disposition just in the same way as when you want to send a created pdf. 3. Read the PDF file and then write it to the response stream. Your choice if you want to do it in chunks or all at once as long as you understand the memory implications. /Klas QuietRiot skrev 20:59: > Im doing it in java (it's a jsp page actually). > > but I lost you here.. > Create the PDF in a memory stream 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/
