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.
I use the newest version of Chrome: 91.0.4472.164 (Offizieller Build) (64-Bit)
Does anyone know what could be the problem here and how I could solve it?