1
I need to print a document by sending directly to the printer without the user having to choose the printer. How do I do this with PHP5
or JavaScript
?
I found that with JavaScript
has the possibility to do with window.print
, but then opens the print screen to select the printer, which is not what I want.
The application runs on the same network as the printer?
– Gregorio bonfante
Depending on the printer, you can try a more elaborate solution with Google Cloud Print. Depends on printer support, https://github.com/yasirsiddiqui/php-google-cloud-print
– Gregorio bonfante
In case you are on the same network and have knowledge about CUPS (native Linux print server), you can try to configure CUPS and send the requests directly to it. http://www.nongnu.org/phpprintipp/
– Gregorio bonfante