These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Streaming a PDF File and Page loading

dpresley
Registered: Mar 17 2010
Posts: 3

Hi,

I have a PDF file being generated in my system with some embedded javascript. The script takes an action on each page of the pdf, and I can verify that it works on a generated file.

The problem is when I assign the document as the return value for an HTTP Request, it appears that the viewer will only load the pages on-demand. For instance if I scroll down three pages and then invoke the javascript, it will only process those three pages and not the whole document.

Is there a way to disable this partial loading?

Thanks

My Product Information:
Reader 9.3, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
PDF's don't stream, but by default Adobe Reader will always try and render the first pages before the file has finished downloading. If you untick "allow fast web view" in Reader's preferences / Internet tab it'll stop it, but you can't force that change on someone else.
dpresley
Registered: Mar 17 2010
Posts: 3
Thanks for the reply. I tried tweaking that setting in my Reader but it didn't have any impact.

It seems that to process the entire document I must view every single page before invoking the script. For instance if I view pages 1-3 and the last page, the script will process pages 1-3 and then stop. Since I viewed the last page I assume the entire document must be loaded at this point.

However I no longer think this has anything to do with streaming.... If I save the file to my hard drive instead of just opening it from the HTTP Response the file shows the same behavior.

It seems to have to do with setting a password on the document. Removing the password fixes the problem, however removing the password is a problem in itself...