动态pdf需要直接打开打印框 [英] dynamic pdf need to open print box directly
本文介绍了动态pdf需要直接打开打印框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与html/JS可以执行window.print()大致相同.
有任何想法吗?
解决方案
您应该嵌入一些javascript代码来做到这一点.
您还将需要此组件: http://www.fpdf.de/downloads/addons/36/ >
在页面末尾,有一个示例,您可以在用户打开文档后显示打印对话框.
i personally would think it's not possible, but maybe somebody knows. (PHP, PDF created with fpdf) I would like to know if it is possible to open that pdf and open the print box directly.
More or less the same as one could do window.print() with html/JS.
any one any ideas?
解决方案
You should embed some javascript code to do it.
You'll need this component too: http://www.fpdf.de/downloads/addons/36/
In the end of the page you have an example where you can show a print dialog after user open the document.
这篇关于动态pdf需要直接打开打印框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文