I tried using the setHeader solution with the OutSimplePDF.java
> > String filename = "myFileName.pdf";
> response.setContentType("application/pdf");
> > response.setHeader("Content-Disposition", "attachment;filename=" +
filename);
> response.setContentLength(baos.size());
but when I ca
Quoting Sergio Lopez Rodriguez <[EMAIL PROTECTED]>:
> 1. The PDF file doesn't open in the same browser but Acrobat Reader window
You should check how Acrobat Reader is configured in your browser.
Change the configuration to 'Open plug-in in browser window' if
you want to open it in the same bro
Hi,
if you use file web.xml you can add in the file this:
CreatePDFAllResultDocument
Výsledková listina pro pohlaví
Závěrečná souhrná výsledková listina pro dané pohlaví.
com.navrat.lezeni.servlet.CreatePDFAllResultDocument
CreatePDFAllResultDocument
/protected/v
AIL 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 HttpServl
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
To: [EMAIL PROTECTED]
Sent: 6/11/02 1:27 PM
Subject: [iText-questions] FileName for a PDF output to screen from a
servlet
Hi, how do you specify the file name when running from
a servlet that creates the
output to the screen.
I have read Bruno's response and I tried to figure it
out for abo
Quoting Ronald Tooley <[EMAIL PROTECTED]>:
> Hi, how do you specify the file name when running from
> a servlet that creates the
> output to the screen.
Just follow the Servlet examples
(e.g.: http://www.lowagie.com/iText/examples/OutSimplePDF.java)
but add this:
> String filename = "myFileNam
Hi, how do you specify the file name when running from
a servlet that creates the
output to the screen.
I have read Bruno's response and I tried to figure it
out for about 1/2 of a day. Ok I am
slow but I don't get it.
I know you can create a file name if you are writing
the file to the hard dri