Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying PDF's

Status
Not open for further replies.

bloise

Programmer
Jun 21, 2001
67
US
Hello,

We have an application which displays many PDF files. The users press the View File hyperlink, and the file gets displayed in the adobe reader. All works fine. However, after displaying about 4 to 5 files(1 to 20 pages), all of the sudden the app slows down to a crawl....

Any thoughts how this can be prevented...

Thanks,
Mike
 
bloise, this is not a CF issue its an Acrobat issue. But I have had the same problem. For some reason whenever you open 5 or more pdf's with more then 6 pages the browser seems to crawl.

My suggestion is to either have user download the pdf files, you'd have to convert them as a .zip file for that. Or have the pdf's open in a new window, this would allow the user to close the browser so that session of acrobat is done with. Both ideas seemed to work for me.


____________________________________
Just Imagine.
 
Thanks for the suggestions and response. I still am having a slight problem. When displaying the PDF that slows everything down, the PDF is open in another window. Now it seems that my original browser window does not respond to any navigation request events.
 
bloise, hmmm, how many pages is the pdf file?? How big is the file, in terms of file size??

Another small tidbit acrobat has is that when the file is repeatedly saved it seems to grow in size. Try opening the original PDF file in acrobat (not acrobat reader), then, go to "File->Save As", but before you save the file, make sure the "optimiZe" checkbox is checked. This will shrink the size down.

Perhaps the issue may not be with the pdf file itself, it can be the browser itself, or the computer. If the computer has low RAM then it may crawl when a heavy application, or file is opened. What browser are you using?? IE6?? If the file is online, post the link so we can see if we get the same issue.


____________________________________
Just Imagine.
 
I have a pretty new computer:
Pent 4 2.66GHz
504 MB of RAM

and using IE6. The PDFS are relatively small in size. All
about 50K. Each are about 10 to 20 pages.

Sorry, can't really post the link because its under a secure password link. I really do appreciate your interest.

I was thinking kinda on the same lines. Maybe some local memory is getting overloaded. But I am kinda speaking from unknown knowledge right now.

My Coldfusion code is...
<CFCONTENT type=&quot;application/pdf&quot; file=&quot;#ExpandPath('../files/')##URL.FILE#&quot; deletefile=&quot;No&quot;>

Thanks,
Mike


 
bloise, hmmm, i'm stumped as well. You have plenty of RAM and the files are not big in size.

Have one more suggestion, instead of using the <CFCONTENT> to load the PDF files, try to see if <cfoutput><a href=&quot;#ExpandPath('../files/')##URL.FILE#&quot;>Click me</a></cfoutput> This will still load the pdf file, but unlike the <cfcontent> where the file loads on its own, this makes the user click the link. Just try this and see if it still makes the browser crawl. If it doesn't then the problem was with the <cfcontent> tag, and if it does, then we'r eback to square one.


____________________________________
Just Imagine.
 
I could not get your above code to work for me.

However, I do all my testing locally using apache webserver and Coldfusion on my machine. This delay does not happen locally, only when we promote this to our production server.

Thanks for spending your time on this issue,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top