【发布时间】:2013-09-24 03:37:56
【问题描述】:
这是我打印 pdf 文件的代码。在这里,打印时间我只得到一页,我需要一个解决方案
function printPdf(){
var ifr = document.getElementById("frame1");
//PDF is completely loaded. (.load() wasn't working properly with PDFs)
ifr.onreadystatechange = function () {
if (ifr.readyState == 'complete') {
ifr.contentWindow.focus();
ifr.contentWindow.print();
}
}
}
【问题讨论】:
标签: javascript internet-explorer pdf