Sorry, but I'm a newbie on iText.
On my linux box, everything with itext works fine.
But on different windows boxes I have two problemes. The first one:
On IE 5 or 5.5 with acrobat 4 or 5 I get a blank page, but I set the right
length at the servlet.
The second one:
On IE 5 or 5.5 with acrobat 6 I get the message from acrobat: "Acrobat
reader cannot open "pa003731.fdf becaue it is a wrong file type or the file is
damaged."
Here my source code:
ByteArrayOutputStream ba = new ByteArrayOutputStream();
Document document = new Document();
PdfWriter.getInstance(document, ba);
document.open();
...
... // generate pdf
...
document.close();
res.setContentType("application/pdf");
res.setHeader("Content-Disposition", "inline; filename=myFile.pdf");
res.setDateHeader("Expires", 0);
res.setHeader("Cache-Control", "must-revalidate, post-check=0,
pre-check=0");
//if the struts controller nocache flag is set, we have to kill the pragma
field
res.setHeader("Pragma", null);
res.setContentLength(ba.size());
ServletOutputStream out = res.getOutputStream();
ba.writeTo(out);
out.flush();
out.close();
Thank you for our answers.
Frank
--
+++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions