printthis

printThis - do not ask for printer selection


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.


Solution

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