Java - Print a raw text in dot matrix printer over the network (without a driver)

101 Views Asked by At

I need to print a series of formatted raw text using a Dot Matrix printer (I'm exploring printer in the lines of Epson LQ-590 from a Java application being run on a Linux server (container actually).

Since, I just need to print a raw text, I'm hoping to do this as directly (from the Java app) and minimally as possible, without using any driver of sorts. Epson website seems to provide only Windows driver only.

Say, I hook the printer to the network (using ethernet), assign it a static IP, can I (and if yes, howO feed the printer the text I want to be printed using the IP address and a port. Also, is the port something Printer usually assigns itself, do most of them listen to port 9100 or is it something that has to be configured?

I saw a few examples on SO where printer is configured as a OutputStream but it wasn't clear on the physical connectivity of the printer part.

0

There are 0 best solutions below