POS: Get a website to print directly to specific local printers

I have a website that runs a ticket office that issues tickets and reports. I am trying to figure out how to get tickets (currently PDF files) sent directly to the specified printer on the local / client PC.

I followed many old / dead / useless links and did not find any modern solutions for this, although many painful glimmers of hope.

The scenario is this: a remote hosting site - 1 or more connected users - the web page generates a ticket / s (PDF), which is silently sent to the specified printer on the user's PC (not the default printer) (without additional pressing print hints).

I know that PHP does not connect to the PC with clients, but is there a way for a web page (possibly via jQuery) to connect to the installed script / service?

I thought that the script on the local PC (which establishes a trusted link, installs the printer for use, etc.) will receive the data / file from the web server and then process it while it was in the same place on each machine. This (local) script can then be added to any PC that needs to start the service. The job must be initiated by the file being sent and not have a script / service that will poll the location every few seconds.

Any pointers would be greatly appreciated.

Edit: I tried the jZebra java applet, but only got it once before it broke. Interested if someone really got him a job (and how).

+1
1

. Google Chrome "". .

, Google Chrome ( chrome chrome * nix):

chrome.exe "http://www.example.com/mypage.php" --kiosk --kiosk-printing

- , , ..

. ( Javascript):

<script>
  window.print();
</script>

, window.print() (.. URL).

. , .

PDF , , PHP ( / ), , : ", , HTML PDF javascript", ! , :

HTML/PHP, ( .pdf), <head> / :

<link rel="alternate" media="print" href="LINK TO PDF FILE">

, window.print(); , . PDF , , - ( ) , , .

:

  • . ALT + F4.
  • --kiosk --kiosk-printing. --kiosk.
  • , . -.

, , , Google Chrome . Linux, Google .deb, Google Chrome Linux, sudo dpkg -i (package / downloaded .deb file path). Chromium --might - ​​. , .

, , .

, . , .;)

+10

All Articles