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 call the Servlet first I get a PopUp(prompt) message to Open/Save
servlet, and after another for the pdf and only when I press for the second
time Open it's when I get the PDF but:
1. The PDF file doesn't open in the same browser but Acrobat Reader window
2. If file name is Test.pdf appears in Acrobat window as Test[1].pdf
Why?
Regards and thanks
Sergio
-----------------------------------------------------------------------
Este mensaje y los documentos, que en su caso, lleve anexos, pueden
contener informacion confidencial y ata�e exclusivamente a las personas
a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de
su autor y no representa necesariamente la opinion de AZERTIA.
Si usted no es el destinatario de este mensaje, considerese advertido de
que lo ha recibido por error y que cualquier uso, difusion o copia estan
prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda
a destruirlo inmediatamente.
This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of AZERTIA.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.
If you have received this email in error please notify it to AZERTIA
by telephone on number +34 93 207 55 11.
-----------------------------------------------------------------------
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions