crabbly / Print.js

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

Printing pdf with chrome --kiosk-printing enabled, fails #582

Open symasdesign opened 3 years ago

symasdesign commented 3 years ago

Hi I try to print a pdf with --kiosk-printing enabled in chrome. The pdf is local available.

Here is my test-code:

<button onClick="printJS('assets/pdf-sample.pdf')">
    Print
</button>

When i run the print, Chrome is showing the message

Print Failed Something went wrong when trying to print. Please check your printer and try again.

Is this a bug in PrintJS or do I have something to change?

I use the newest version of Chrome: 91.0.4472.164 (Offizieller Build) (64-Bit)

shreyansh96 commented 3 years ago

https://stackoverflow.com/a/68418630/7092628

harry503 commented 3 years ago

Me too, Having. the same issue

PauloPeres commented 3 years ago

Having the Same problem here. This problem started a few months back after a update from Chrome. I'm using version 1.5.0 of the print-js package will update to version 1.60 and see if it works, will report back after further investigation.

jllodra commented 2 years ago

I am using kiosk printing as well and I am not having this problem using "print-js": "1.0.63".

In case you want to try yourself or investigate what changed between that version and the recent ones.