Hi!
We are using iText to generate dinamically pdf documents in the web. We
generate the document in a java class and we don't save it in a file. We
send the ByteArrayOutputStream used to generate the document to a java Action
and we save this ByteArrayOutputStream in the http session. After this,
in a jsp, we rescue the ByteArrayOutputStream to open it with Acrobat Reader
and then, after open the acrobat reader program we obtain an error because
off a problem with the format of the document. We haven`t problems if we
open it directly since the action but we need to open it in since the jsp
file.
The code we use in the jsp file is:
response.setContentType("application/pdf");
response.setHeader("Content-disposition","attachment;");
java.io.ByteArrayOutputStream bba =
(java.io.ByteArrayOutputStream)session.getAttribute("pdf");
where "bba" is the ByteArrayOutputStream that we obtain when we generate
the pdf document.
Could someone help us? We were looking for in the mail archive but we didn't
see anything.
Best regards.
Marga.
PRUEBA TISCALI ADSL HASTA 6 MESES
SIN CUOTAS FIJAS, SIN COMPROMISO
PONNOS A PRUEBA
http://acceso.tiscali.es/pag-acceso-adsl-Prueba.jsp?did=adp-7530007
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions