Right Justification of Printed Text in PCL 5

without concern for character widths or font size.

  1. Define a macro containing the text to be right justified. In the following example, that is id number 1022
  2. Position the cursor to the right edge of the desired text position
  3. Set pattern transparency to transparent and pattern to solid white
  4. Set print direction to 180 degrees
  5. Execute the macro containing the printable text.
  6. Set pattern transparency to opaque and pattern to solid black
  7. Set print direction to 0 degrees
  8. Execute the macro containing the printable text.
<esc>*p4798x540Y<esc>*vo1T<esc>&a180P<esc>&f1022Y<esc>&f2X<esc>*v1oT<esc>&a0P<esc>&f1022Y<esc>&f2X

Comments: