谷歌浏览器扩展程序:无声打印页面 [英] Google Chrome Extension: Print the page silently

查看:164
本文介绍了谷歌浏览器扩展程序:无声打印页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发内部的Google Chrome浏览器扩展程序,它需要一种方法来启动将当前页面打印到打印机。我不想让默认的打印对话框出现(所以,javascript:window.print()是没有问题的)。

据我所知,这不可能只是使用JS + HTML插件,所以我也愿意使用NPAPI插件(带有哑哑型)。我只关注Windows平台。



如果可能的话,我也会开放各种黑客/解决方法,尽管标准解决方案会很好。



如果您认为这是不可能的,请告诉我您是否知道任何记录的功能请求?



任何建议/澄清是受欢迎的。

解决方案

在chrome(v18 +)中,我们有 - kiosk --kiosk打印开关。您可以自动打印到默认打印机,无需打印确认。



您可以从此视频中看到 http://www.youtube.com/watch?v=D6UHjuvI7IE


I'm developing an internal Google Chrome Extension that needs a way to initiate print the current page to the printer. I do not want the default Print dialog to come up (so, javascript:window.print() is out of question).

As far as I understand, this is not possible just with the JS + HTML plug-in, so I'm also open to using the NPAPI plugin also (with a dummy mime-type). And I'm concerned for Windows platform only.

I'm also open for various hacks / workarounds if possible, though a standard solution would be nice.

If you think this is not possible, let me know if you know any feature request logged for it?

Any suggestions/clarifications are welcome..

解决方案

In chrome (v18+) we have the --kiosk --kiosk-printing switches. One can print automatically to default printer without print confirmation.

You can see it from this video http://www.youtube.com/watch?v=D6UHjuvI7IE

这篇关于谷歌浏览器扩展程序:无声打印页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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