escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

javascript integration for local lan printer

Open BonoTrotDJ opened this issue 1 year ago • 7 comments

Is it possible to use the LAN address of the client and not the server for the connection to ESCPOS?

Maybe using javascript?

BonoTrotDJ avatar Sep 24 '23 07:09 BonoTrotDJ

Yes, it is possible

parallels999 avatar Dec 27 '23 17:12 parallels999

Could you help me? Please

BonoTrotDJ avatar Dec 29 '23 09:12 BonoTrotDJ

I'm using QZ Tray without problems, I just send ESC/POS rendered in base64 encoding with ajax to the web client, and use javascript to send it to the printer https://demo.qz.io/ https://qz.io/download/

parallels999 avatar Dec 29 '23 13:12 parallels999

nice, I need some scripts without software to install

BonoTrotDJ avatar Dec 29 '23 18:12 BonoTrotDJ

https://github.com/caferyukseloglu/escpos-parser

caferyukseloglu avatar Feb 14 '24 23:02 caferyukseloglu

If you want I can send you the code to print with escpos-php via IP. only that it works server-side, so you can use a local web server

BonoTrotDJ avatar Feb 17 '24 08:02 BonoTrotDJ