printThis - 不询问打印机选择

printThis - do not ask for printer selection

使用 printThis.js 库,是否有不显示打印机选择对话框的选项?

我只想使用默认参数打印到默认打印机。

此问题主要针对 PrintThis.js 库。

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.