看起来一些嵌入式pdf文件"application/x-google-chrome-pdf“的打印预览不再起作用了。在Chrome59.x版本中打开this pdf文件并尝试打印它。我的系统上安装了Adobe Reader XI 11.0.20版。有什么办法可以解决这个问题吗?
发布于 2018-12-06 14:32:36
请参考这篇文章。基本上,如果是chrome,那么在打印之前需要延迟。对原始帖子的赞誉。
google chrome print preview does not load the page the first time
发布于 2017-06-08 22:06:58
对我来说,Chrome59的不兼容问题似乎是因为我们使用QuickPDF库(PageJavaScriptAction)注入到PDF中的javascript。JS代码为:
try{
print( {bUI: true, bShrinkToFit: true});
} catch(e){
try{
print({bUI: true, bShrinkToFit: true});
} catch(e1){app.alert(e + ',' + e1);}
}删除这段代码后,预览似乎又可以正常工作了,类似于旧版本的chrome。
发布于 2018-05-21 20:31:16
https://stackoverflow.com/questions/44422565
复制相似问题