dcsimg
Problem in loading pdf output
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rekha_Andrews
Posted On:   Thursday, January 30, 2003 04:30 AM

PDF output is generated using functions available in uk.org.retep.pdf.*; Then this output is loaded in a browser using oLoutput = new RandomAccessFile("prod.pdf","r"); output.read(buffer); oLoutput.close(); PrintStream oLoutputStream = new PrintStream(System.out); oLoutputStream.println("Content-type: application/pdf"); oLoutputStream.println("Content-Length: "+new File(strLurl).length()); oLoutputStream .println("charset=us-ascii"); oLoutputStream .println(); oLoutputStream .print(new String(buffer)); pdf output loads in the browser properly. But AcroRd32.exe that is getting loaded remains running even after the browse   More>>

PDF output is generated using functions available in uk.org.retep.pdf.*;
Then this output is loaded in a browser using
oLoutput = new RandomAccessFile("prod.pdf","r");
output.read(buffer);
oLoutput.close();
PrintStream oLoutputStream = new PrintStream(System.out);
oLoutputStream.println("Content-type: application/pdf");
oLoutputStream.println("Content-Length: "+new File(strLurl).length());
oLoutputStream .println("charset=us-ascii");
oLoutputStream .println();
oLoutputStream .print(new String(buffer));

pdf output loads in the browser properly. But AcroRd32.exe that is getting loaded remains running even after the browser is closed. As a result when the next time when pdf output is generated, it is not getting loaded in the browser. AcroRd32.exe has to be terminated from the task manager. Only after that pdf out displayed.

So i guess AcroRd32.exe has to be killed when the browser is closed. How to do this? Or is there any other alternative.

Thanks in advance.

   <<Less

Re: Problem in loading pdf output

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, January 30, 2003 07:59 AM

? Are you running the Acroreader as a plugin inside the browser window, or in a separate window by itself? under Windows? Linux? Solaris? MacOS? with MSIE? Netscape? Mozilla? Konqueror? Opera?



On the PC's I have observed running MSIE under Windows of various flavors where the Acroreader is a plugin inside the browser, indeed the AcroRd32 process does keep running for a while after a browser is closed, so that it is quicker to start the next time it is used to display another PDF. The new plugin in a new window should just run OK from the existing AcroRd32 process, quicker than if it had to start a whole new process.



But (e.g. in Linux, or with the Acroreader running as an external "helper" window outside the browser, as in Netscape, Opera etc.) I am not sure.

About | Sitemap | Contact