Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) JavaScript


Topic: Problem Web PDF
Conf: (P-PDF) JavaScript, Msg: 28333
From: gberetti
Date: 10/9/2001 10:47 PM

Dear Sirs, 
I am trying to sending a PDF document from a
servlet, but I have some problem.
IE does not display the page if this file is smaller than 7/8 Kb; only if I push "refresh" button, the IE
displays the page.
But, if PDF document is greater than 7/8Kb, IE always display the page(s) correctly.
Using Netscape 4.75, servlet works very well...
Do you know where is the bug? IE bug? Have you got an idea?

Example Code:
ServletOutputStream outs = response.getOutputStream();
response.setContentType("application/pdf");
response.setHeader("Content-Disposition", "inline; filename=generated.pdf");
File f = new File("C:\\Programmi\\j2sdkee1.3\\public_html\\"+"temp.pdf");
InputStream in = new FileInputStream(f);
int bit=256;
while ((bit) >= 0) {
        bit = in.read();
        outs.write(bit);
         }
       in.close();
       outs.flush();
      outs.close();


Thank you in advance !!!
Gabriele


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories