开发者

Printing to IP receipt printer from ruby

开发者 https://www.devze.com 2022-12-12 14:35 出处:网络
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社

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消