我需要直接打印 pdf 文件而不显示打印预览。当我使用
window.print() it goes to windows print preview page. But i need to send the file directly to the printer without showing print preview page
最佳答案
纯 javascript 和 html 是不可能的。您需要使用 silverlight 5 (签名),flash或 qz-print - js wrapper which uses java .
例如,以下特定解决方案可能有效
javascript print without print dialog box
我个人只实现了 silverlight 5(已签名),我没有自己实现的 flash 和 qz-print。
希望这对您有所帮助!
关于javascript - 如何在不使用 php/javascript 中的 window.print() 的情况下将文件直接发送到打印机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35738514/