在没有打印对话框的情况下从 Chrome 打印?也许使用 Greasemonkey 用户脚本? [英] Print from Chrome without the print dialogs? Using Greasemonkey userscript maybe?

查看:34
本文介绍了在没有打印对话框的情况下从 Chrome 打印?也许使用 Greasemonkey 用户脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一款基于浏览器的仓库应用,需要定期打印标签和发票.我们希望能够打印到本地打印机,而无需单击通常的浏览器打印对话框.这可能吗?可能使用了一个greasemonkey 用户脚本?我们不想设置整个 CUPS 打印机网络并处理所有这些,但仓库拣货员每天必须点击 1000 次打印对话框并不是一种选择.

We're developing a browser-based warehouse app that needs to print labels and invoices regularly. We want to be able to print to the local printer without clicking through the the usual browser print dialogs. Is this possible? Possibly using a greasemonkey userscript? We don't want to have to setup a whole CUPS printer network and deal with all that, but warehouse pickers having to click through a print dialog 1000 times a day isn't an option.

我们正在打印 PDF,不确定这是否重要.如果我们可以使用 HTML5 或其他方式以另一种方式做到这一点,我愿意在这里接受课程更改或其他想法.

We're printing PDFs, not sure if that matters. If we could do this another way using HTML5 or something else I'm open to course changes or other ideas here.

推荐答案

如果您使用 --kiosk --kiosk-printing 开关启动 chrome (v18+),您就可以做到.

You can do if you start your chrome (v18+) with the --kiosk --kiosk-printing switches.

你可以从这个视频中看到它https://www.youtube.com/watch?v=1ewep-ZT64E

You can see it from this video https://www.youtube.com/watch?v=1ewep-ZT64E

这篇关于在没有打印对话框的情况下从 Chrome 打印?也许使用 Greasemonkey 用户脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆