Printing to IP receipt printer from ruby
Want to send text to a network receipt printer using ruby. I know the IP address of the printer. The printer is accessible through the network, but it is not directly connected t开发者_StackOverflow社区o the computer.
I'm using a Star TSP100LAN, but I'm sure it would be using the same protocol as other receipt printers.
almost all printers do speak PJL, the Printer Job Language. a simple TCP connection to printer IP should be sufficient. i don't know which port to use, but the PJL command set is well defined here(PDF).
精彩评论