0

Using printThis.js library, is there an option to NOT display the printer selection dialog?

I would simply like to print to the default printer, using the default parameters.

This question is focused on the PrintThis.js library.

pithhelmet
  • 2,222
  • 6
  • 35
  • 60
  • Possible duplicate of [How to skip browser default print preview and print content directly to printer in jquery/javascript?](https://stackoverflow.com/questions/27633386/how-to-skip-browser-default-print-preview-and-print-content-directly-to-printer) – blurfus Jul 11 '19 at 14:55

1 Answers1

0

https://github.com/jasonday/printThis/issues/184#issuecomment-510520318

For security reasons your browser requires that the print dialog prompt before printing, otherwise any website could print without permission. printThis cannot override this behavior.

There are some use cases where printing without the dialog is desired (such as a kiosk), but printThis would have no control over that behavior, and the kiosk setup would need to account for it through print settings, etc.

Jason
  • 7,612
  • 14
  • 77
  • 127