Having chrome auto print without setup options

10,791 views
Skip to first unread message

Charlie S

unread,
Jul 10, 2015, 7:37:01 PM7/10/15
to chromi...@chromium.org
Does anyone know where to look to disable any sort of print preview or print setup options ?  I'm wanting to print the page without any confirmation or clicking nesscessary.

Thanks!

PhistucK

unread,
Jul 11, 2015, 5:05:25 AM7/11/15
to charli...@gmail.com, Chromium-dev
It is only possible in conjunction with the kiosk mode (full screen Chrome).
Run Chrome with --kiosk --kiosk-print and it will print automatically.


PhistucK

On Sat, Jul 11, 2015 at 2:37 AM, Charlie S <charli...@gmail.com> wrote:
Does anyone know where to look to disable any sort of print preview or print setup options ?  I'm wanting to print the page without any confirmation or clicking nesscessary.

Thanks!

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

charlie

unread,
Jul 11, 2015, 12:55:52 PM7/11/15
to PhistucK, Chromium-dev
Hi,

Running with those flags still gives me a print preview mode for some reason.  I have the source code and chromium building fine, I'm wondering where in the code I can change it to allow me to print without a preview.
--
Thanks!
Charlie

Anton Vayvod

unread,
Jul 12, 2015, 7:00:19 AM7/12/15
to charli...@gmail.com, PhistucK, Chromium-dev
Not sure if it'll even build for desktop, but for Android there's 'enable_print_preview' gyp variable that you could override as described in https://www.chromium.org/developers/gyp-environment-variables. Worth a try and looking through the code #ifdef-ed with ENABLE_PRINT_PREVIEW.

Peter Kasting

unread,
Jul 12, 2015, 10:56:59 PM7/12/15
to PhistucK Productions, charli...@gmail.com, Chromium-dev
On Sat, Jul 11, 2015 at 2:03 AM, PhistucK <phis...@gmail.com> wrote:
It is only possible in conjunction with the kiosk mode (full screen Chrome).
Run Chrome with --kiosk --kiosk-print and it will print automatically.

IIRC, --kiosk-print has absolutely no effect, and hasn't for some time; there's a bug on this.

PK 

Guy Dawson

unread,
May 22, 2018, 11:52:46 AM5/22/18
to Chromium-dev
We're finding that auto-printing is one of our big blocks to implementing web apps at work.

We have a number of warehouse production flows (both in our warehouse and our customers) where we want to instruct Chrome to print a particular document (usually in PDF but sometimes in EPL for label printers) on a known printer. Different documents need to be printed on different printers so the kiosk mode with a single default printer does not work for us.

We have until recently done well with PDFs using the Adobe Acrobat Reader extension which can execute JavaScript in the PDF to auto-print the PDF but that's stopped working with the latest Chrome 66 update.

Sure, we'd like a paperless office but we're a while away from that. The current lack of support is slow, time consuming and expensive. 

Lei Zhang

unread,
May 22, 2018, 7:23:36 PM5/22/18
to bsd...@gmail.com, Chromium-dev
If you had an existing workflow that worked, but then it broke, can
you file a bug about that on https://crbug.com ?

What's required for your set up and what is nice to have?
a) Pre-populating the print preview dialog with the printer specified
by the PDF.
b) Have the print preview dialog automatically press the print button.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d3826bf2-7d6c-49cd-b4b9-1ab2d8073528%40chromium.org.

Guy Dawson

unread,
May 23, 2018, 4:30:07 AM5/23/18
to the...@chromium.org, chromi...@chromium.org, Dave France
Hi Lei,

We'll post a bug on crbug.

We're looking at processes in warehouses. A typical task involves packages that are taken from a conveyor, a barcode on the package is scanned and then following some processing (collation of physical package data and delivery destination and costs) a new label is printed and attached over the old one. One of several different labels may be printed from one of several different printers. Different printers have different label/paper stocks in them. The user does not have to make any decisions, they just scan, peel and affix.

What we need for this is fully automatic printing with no user interaction at all. The user scans a barcode, the system makes a decision and a label automatically prints with no user interaction at all.

Our current solution needed some configuration (notably a list of printers per workstation/stock combination and configuring the Acrobat Reader PDF extension to trust our www site and allow auto-printing) but given the volume of printing required this overhead was easily absorbed by the efficiencies of automatic printing.

Using the Acrobat PDF Reader extension we were able to dynamically create custom PDFs for each label to be printed that included in it JavaScript that the extension executed and could automatically print the PDF on the instructed printer. The JavaScript included the name of the printer and the necessary 'silent' print commands. 

Regards,
Guy

--
4.4 > 5.4

Ifrit Kumbh

unread,
Jul 23, 2019, 9:52:45 AM7/23/19
to Chromium-dev
For without kiosk mode
Type" --disable-scripted-print-throttling --kiosk-printing"
For kiosk mode just add
" --kiosk" before kiosk printing
Note there is space before --
And always without " thid
Reply all
Reply to author
Forward
0 new messages