This utility runs a server on port 7655 and accepts post request with json as follow:
{"type":"INVOICE","nameOfPrinter":"Epson","content":"<CTL_LF>HEADER<TXT_ALIGN_CT><DIV><CTL_LF><DIV>", "printerSize": 58}
This will print the value of content passed json using the printer with name Epson. Printer Size is used to set the value of divider and Horizontal Tab.
Tag | Value |
---|---|
CTL_LF | Print and line feed |
CAN_HT | Cancel Horizontal Tab |
HT | Horizontal Tab |
LINE_SPACE_24 | Set the line spacing at 24 |
LINE_SPACE_30 | Set the line spacing at 30 |
SELECT_BIT_IMAGE_MODE | Image |
HW_INIT | Printer hardware Clear data in buffer and reset modes |
CD_KICK_2 | Cash Drawer Sends a pulse to pin 2 |
CD_KICK_5 | Cash Drawer Sends a pulse to pin 5 |
PAPER_FULL_CUT | Full cut paper |
PAPER_PART_CUT | Partial cut paper |
TXT_NORMAL | Normal text |
TXT_2HEIGHT | Double height text |
TXT_2WIDTH | Double width text |
TXT_4SQUARE | Quad area text |
TXT_UNDERL_OFF | Underline font OFF |
TXT_UNDERL_ON | Underline font 1-dot ON |
TXT_UNDERL2_ON | Underline font 2-dot ON |
TXT_BOLD_OFF | Bold font OFF |
TXT_BOLD_ON | Bold font ON |
TXT_FONT_A | Font type A |
TXT_FONT_B | Font type B |
TXT_ALIGN_LT | Left justification |
TXT_ALIGN_CT | Center justification |
TXT_ALIGN_RT | Right justification |
LEFT_MARGIN | Left Margin |
TWO_HT | Two Horizontal Tabs |
THREE_HT | Three Horizontal Tabs |
DIV | Divider Line |
Sits nicely in task bar
Logs commands sent