title: POS: get a website to print directly to a defined local printer/s
body: <p>I have a website which runs a box office service which issues tickets and reports.  I am trying to figure out how to get tickets (currently PDFs) sent directly to a specified printer on a local/client PC.</p>
  
  <p>I have followed many old/dead/useless links and have not found any up-to-date solutions to this although many tantalising glimmers of hope.</p>
  
  <p>The scenario is this: Remote hosted website - 1 or more users connected - web page generates ticket/s (PDF) which is sent to a specified printer on the user pc (not the default printer) silently (no extra clicking through of print prompts).</p>
  
  <p>I know PHP does not connect to a clients pc but is there a way for a web page (via jQuery perhaps) to connect to an installed script/service? </p>
  
  <p>I was thinking the script on a local PC (which establishes a trusted link, sets the printer to use, etc) would receive data/file from the web server and then process it as long as it was in the same place on every machine.  This (local) script then can be added to any PC that needs to run the service.  The work would need to be trigged by the file being sent and not having a script/service which is sat polling a location every few seconds.</p>
  
  <p>Any pointers would be greatly appreciated.</p>
  
  <p>Edit: I have tried the jZebra java applet but only got it printing once before it broke. Interested if anyone has actually got it to work (and how).</p>