• 0

Is this a bug with adobe viewer plugin?


Question

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

  • 0

I'm using 9.1 but the bug also happens with 9.0, and on several different computers (all Windows)

I'm resizing the div using a script from www.mootools.org which creates a smooth animation, but any kind of re-size, as below causes the problem.

HTML Looks a bit like this....

<div id="pdf_div" style="height: 350px;">
<iframe id="pdf_iframe" src="myPDF.pdf" style="height: 200px;"></iframe>
</div>

But even when I do a simple javascript resize like below it still crashes...

document.getElementById('pdf_div').style.height = '200px';

and a similar crash can be brought on by...

document.getElementById('pdf_iframe').style.height = '200px';

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.