Print.js icon indicating copy to clipboard operation
Print.js copied to clipboard

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

Open symasdesign opened this issue 3 years ago • 4 comments

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)

symasdesign avatar Jul 16 '21 11:07 symasdesign

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

shreyansh96 avatar Jul 17 '21 08:07 shreyansh96

Me too, Having. the same issue

harry503 avatar Jul 26 '21 03:07 harry503

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.

PauloPeres avatar Jul 28 '21 15:07 PauloPeres

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.

jllodra avatar Feb 11 '22 10:02 jllodra