Set Left margin print

Asked by At

I want to shift the left margin of my printer, but if I set

const ESC = "\x1b";
echo ESC."$".chr(0).chr(8); // left margin

the print doesn't shift at all, I have so a print area with 1 less character, so how can I shift all the area? I don't understand how can set it

n1 and n2 are hex values. Convert each to decimal. Then, use this formula to get the
decimal equivalent: (n1 × 256) + n2.
If the number exceeds the printable area, it is ignored.
The maximum value for the customer receipt station is 576.

EDIT Maybe I can set it with the "Set relative position"? to shift the print area?


0 Answers