Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome Extension: Print the page silently

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..

like image 502
Sai Prasad Avatar asked Jan 31 '11 10:01

Sai Prasad


People also ask

How do I turn on silent print in Chrome?

Enable auto print In Chrome this is called "silent printing" or "kiosk printing". After creating the desktop shortcut, right click the shortcut and click "Properties". Click Apply. Now, when you use this shortcut to Chrome, goods out notes will be sent directly to the default printer.

What is silent printing?

Function description. Silent printing, that is, when you click Print, the option window and printer setting window will not pop up, and you can print directly. No client printing,Local printing,Server-side printingSupport silent printing.

How do I print friendly in Chrome?

When you want to print or PDF a webpage, click the "Print Friendly" button in your Extensions Toolbar.


1 Answers

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

like image 179
printminion Avatar answered Oct 07 '22 19:10

printminion