Of course, the Save As prompt that shows you the servlet name instead of
the filename, meaning that you have two "open" and a final "save" click
(sun.com used to do this..."Save As Download5")

Thanks for the reminder!

-----Original Message-----
From: Bruno
To: [EMAIL PROTECTED]
Sent: 6/11/02 1:52 PM
Subject: RE: [iText-questions] FileName for a PDF output to screen from a
servlet

Quoting Les Hughes <[EMAIL PROTECTED]>:

> 
> If you mean that the servlet generates PDF to the browser, then use
the
> OutputStream associated with the HttpServletResponse object after
setting
> the correct content type:-
> 
> response.setContentType("application/pdf"); //Or whatever this should
be
> PdfWriter writer = PdfWriter.getInstance(document,
> reponse.getOutputStream());

That would be the way to do it, but unfortunately this
doesn't work very well with most versions of MSIE.
That's why the ByteArrayOutputStream-workaround is
used.

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to