crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.28k stars 672 forks source link

Can it be printed automatically? #646

Open cuiD2488 opened 1 year ago

cuiD2488 commented 1 year ago

Can it be printed automatically? There is no need for the user to operate again. When the server sends the information, the web side automatically prints the data. Configure the printer in advance

FlippingBinary commented 1 year ago

You can't bypass the print dialog box of a stranger's computer, but I believe there is a solution for Firefox if you have access to the client workstation. Configure the print.always_print_silent setting to a boolean true. It will then use default settings. This can be useful for employee workstations that frequently print from an internal web app, but it disables the print dialog for all web pages. I got that tip from this webpage: https://forums.mozillazine.org/viewtopic.php?t=48336