1) it is advisable to invoke "setContentType" on
the HttpServletResponse object
2) it is advisable to set the Content-disposition header
as well
Example code is online @ http://www.pjug.org/PDFServlet.java
-Sean
> From: "Ishaq Ali Mohammed" <[EMAIL PROTECTED]>
>
> I am trying to generate PDF dynamically and I am using the work around
> suggested for IE i.e. write everything to ByteArrayOutputStream and set
> the content length etc. as explained in couple of examples.
>
> When I get to the page where I am supposed to see this PDF I get some
> garbage something linke this.
>
> [...]
>
>
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions