Hi all. I'm writing a web application and occasionally I need to embed a PDF for the user to view or print or save.
I'm embedding the PDF in an iframe, and setting the src to the location of the PDF.
In order to hide the iframe, and hence the PDF, the iframe resides in a div.
I then re-size the div with javascript to show or hide the PDF.
The problem is that when adobe viewer is the plugin that displays the PDF, resizing the div causes the plugin, and often the whole browser to crash (IE and Firefox). Even changing the size by 1 pixel causes a problem.
If I uninstall adobe, and use foxit or some other reader, it works OK.
Can anyone reproduce this problem, and perhaps suggest a solution?
I can't force all my users to get rid of adobe, and swap to foxit.
Question
angusmann
Hi all. I'm writing a web application and occasionally I need to embed a PDF for the user to view or print or save.
I'm embedding the PDF in an iframe, and setting the src to the location of the PDF.
In order to hide the iframe, and hence the PDF, the iframe resides in a div.
I then re-size the div with javascript to show or hide the PDF.
The problem is that when adobe viewer is the plugin that displays the PDF, resizing the div causes the plugin, and often the whole browser to crash (IE and Firefox). Even changing the size by 1 pixel causes a problem.
If I uninstall adobe, and use foxit or some other reader, it works OK.
Can anyone reproduce this problem, and perhaps suggest a solution?
I can't force all my users to get rid of adobe, and swap to foxit.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts