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
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
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!
Browsers will not allow that to happen. You can use the below plugin to provide beautiful previews.
https://github.com/etimbo/jquery-print-preview-plugin
Demo: http://etimbo.github.io/jquery-print-preview-plugin/example/index.html