Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send a file directly to the printer without using window.print() in php/javascript

I need to print a pdf file directly without showing print preview. When i am using

window.print() it goes to windows print preview page. But i need to send the file directly to the printer without showing print preview page

like image 557
Yadhu Phinix Avatar asked Jun 03 '26 10:06

Yadhu Phinix


1 Answers

Thats not possible with pure javascript and html. You'll need to use silverlight 5 (Signed), flash or qz-print - js wrapper which uses java.

For i.e. specific solution following may work

javascript print without print dialog box

I have personally implemented only silverlight 5 (Signed), I have not my self implemented flash and qz-print.

Hope this helps!

like image 108
Dave Amit Avatar answered Jun 04 '26 22:06

Dave Amit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!