i've got two problems to display correctly i-text generated pdf files with a servlet in Intermet Explorer 5.50.
The code is something like following:
....
res.setContentType("application/pdf");
ByteArrayOutputStream ba = new ByteArrayOutputStream();
generate_pdf(ba);
res.setContentLength(ba.size());
ServletOutputStream out = res.getOutputStream();
ba.writeTo(out);
out.flush();
....The method generate_pdf() read data from an existing PDF file and hide toolbar and menubar with the instruction writer.setViewerPreferences(PdfWriter.HideToolbar+PdfWriter.HideMenubar).
This code works fine with Internet Explorer 6 over all the acrobat reader version (4,5,6) but it never works with Internet Explorer 5.50.4522.1800 indipendently by the acrobat reader version.
My first problem is that the browser display a blank page.
The second problem is: If i choose to don't display pdf in the browser the file is correctly displayed in a separate acrobat reader window but with the toolbar and menubar visible.
This second problem happens even if i open a pdf file with the url: location.href("myPDF.pdf").
Any suggestions?
Thanks in advance.
_________________________________________________________________
Nuovo MSN Messenger con sfondi e giochi! http://messenger.msn.it/ Provalo subito!
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
