I'm creating a cash register schedule. I would like the pdf file to be printed on the printer set up in the database once the order is placed, without a print preview. so far I have used php and javascript but I can use other languages as well. anyone know how i can do it?
Asked
Active
Viewed 679 times
0
-
check the answers on https://stackoverflow.com/questions/16239513/print-pdf-directly-from-javascript – eGhoul Oct 30 '19 at 10:04
1 Answers
0
This depends on your browser.
Chrome (at least for windows) has a startup parameter -disable-print-preview
. You can right click your Chrome Icon and add it as argument after chrome.exe
.

Markus Zeller
- 8,516
- 2
- 29
- 35
-
-
hank you very much for the advice, but if I wanted to do it independently of the browser? – Francesco Gobbi Oct 30 '19 at 10:27
-
@FrancescoGobbi I am afraid it is not possible. This is good, imagine any website could print without user interaction. – Markus Zeller Oct 30 '19 at 12:54