javascript - 如何在不使用 php/javascript 中的 window.print() 的情况下将文件直接发送到打印机

标签 javascript php printing

我需要直接打印 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 (签名),flashqz-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/

相关文章:

javascript - 在不更新/修改该对象的情况下如何更新对象值?

php - mysql 开始日期和结束日期

javascript - 在类中显示 purejs 中的前 2 个字符并隐藏其余字符

c++ - 如何执行键类型和映射的通用打印

正确的 AddNode 函数,但当我 printf 时发生了一些事情

javascript - JS中将ascii字符码转换为包含文本和ascii码的字符串中的字母

javascript - 无法读取未定义的 Google map JSON 的属性 'geometry'

javascript - 单击按钮一次后禁用按钮

php - www 和 https 的 htaccess 重定向问题

angularjs - 如何在 ion-view 中打印网页