PDF未嵌入IE11

时间:2015-08-06 01:53:46

标签: internet-explorer pdf iframe adobe

我创建了一个简单的html文件,该文件应该具有可打印的嵌入式pdf:

<p>Try to print this sucka!</p>
<div>
    <iframe id="frmPdf" src="ImageDir/temp.pdf" style="width:0px; height:0px;"></iframe>
    <button id="btnPrint" onclick="frmPdf.contentWindow.focus(); frmPdf.contentWindow.print(); return false;">Push Me To Print</button>
</div>

这适用于Chrome。我可以打印文件。但是,在IE上加载页面时,我立即在窗口底部得到一个下载/保存提示,打印按钮什么都不做。如果我放大iframe,我发现它根本没有任何东西。

我怀疑这是一个Adobe插件问题。我下载了最新的读卡器(DC)并安装了它,然后将其卸载并重新安装。然后我禁用并重新启用了该插件,但没有任何效果。

我在Adobe Reader DC中打开了首选项,然后转到“Internet”部分。启用以下选项:

  • 默认情况下以读取模式显示
  • 允许快速网络浏览
  • 允许在后台投机下载

它还说可供浏览器使用的产品是“C:\ Program Files(x86)\ Adob​​e \ Acrobat Reader DC \ Reader \ AcroRd32.exe。但是,当我打开IE并转到信息时adobe插件,它说它使用C:\ Program Files(x86)\ Common Files \ Adob​​e \ Acrobat \ ActiveX \ AcroPDF64.dll。我不知道这意味着什么。

如何使PDF插件正常工作?

0 个答案:

没有答案
相关问题