Print label
Print loads the label in a hidden frame on this site (no new tab) and opens the print dialog — same as
Ctrl+P on that document. Deploy with the included functions folder so /label can proxy the PDF; opening index.html from disk cannot do that.
To print without a dialog on a dedicated label PC, use Chrome with
--kiosk-printing (see below). Then this button sends the job straight to the
default printer.
Silent print (no dialog) — Chrome on a fixed workstation
Browsers do not allow arbitrary websites to print silently. On a machine you control, start Chrome with kiosk printing so window.print() goes to the default printer without a dialog.
1. Set the correct default printer in Windows / macOS.
2. Create a shortcut whose target is like:
3. Use that shortcut only for this label page. Open your deployed URL in that Chrome window, then click Print.