Open azorgh opened 5 years ago
Your idea is valid, to print from the web you would need a client which can see the printer and is actually capable of doing raw printing.
Somewhere between this PHP code and the printer, I'm guessing the binary is being munged.
So first, the transport over the network. I would also suggest reading this example for the PHP side, which will provide the file over HTTP without using a temp file.
Next, you just need to download the print file and send it to the printer raw, but you missed some important details: Which operating system are you on, and how is your printer connected? (USB, raw, ethernet, etc). I don't use the Epson print tool, so I'm not sure if that's a valid part of a raw printing pipeline or not.
I have the same issue. I was thinking in saving all data in a buffer (like the example, i guess) or file, and then send it to the client using JS, but Idk what libary use for the printer. Do you know if I can use the ePOS Epson library or which type of format should i use to pass data from server to client and print it on a Thermal Epson Printer (TM-T88V). Server: Linux Centos Client: Windows 10
check your socket buffer
Has anyone figured out this ? I'm still hang in between.
"Create a litlle app on the client, wich receive a socket event and download the txt file" in socket source code ,you must have this line: $header = socket_read($socket, 1024); //read data sent by the socket 1024 is read buffer change to 10240
Printing on local will work well with this package.
However, to print online, you will need to develop a desktop service which has to be installed on the local computer where you need printing to be done. Operating System does not matter in this case, you can be hosting on Linux based server and printing on a windows server. This desktop service interfaces between the online service and the local service.
I resolved this by developing an electron js service, which can receive commands from the online print command and then communicate those commands to the printer through USB.
Hello everyone,
I've a app wich need to print to a EPSON TM-T20 from the web. I've read the part of the README where you suggest to use QZ, Chrome Raw Print etc, but I had some ideas before read that.
My base idea was :
For my firsts tests, I've generated a basic TXT like this :
When I use the EPSON tool for send the txt file, everything is fine. The printer start to print. But the result is not the one expected !
Here is the visual result (I've hide some private datas ;) )
Numbers aren't displayed, carriage return and spaces too.
Any ideas ? Maybe my workflow is not correct to print datas ?
Thanks for your help <3