HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

EN EA, Edge Rectangle Absolute 21-19
SP1; Select pen number 1. Even though
there is no physical pen, the SP
command must be used to enable
printing.
SC0,150,0,150,1; Set up user scaling, with P1 being
(0,0) user-units and P2 being
(150,150) user-units. (Isotropic
scaling is specified.)
PA75,105; EA115,130; Specify absolute plotting mode and
move to (75,105). Use EA to outline
the shape of a rectangle that begins
at (75,105) and has an upper right
corner of (115,130) user-units.
PA95,105;PD95,95; Draw a line from (95,105) to (95,95).
PD65,95,65,90; Draw a line from the current pen
location (95,95) to (65,95), and
another line from there to (65,90).
PU45,90;EA85,65; Lift the pen and move to (45,90).
Draw the outline of a rectangle with
an upper left corner of (45,90) and
a lower right corner of (85,65).
PU95,95;PD125,
95,125,90;
Lift the pen and move to (95,95).
Lower the pen and draw a line to
(125,95), then to (125,90).
PU145,90;EA105,65; Lift the pen and move to (145,90).
Draw the outline of a rectangle, with
the upper right corner at (145,90) and
the lower left corner at (105,65).
?%0A Enter the PCL mode.
?E Send a reset to end the job and eject
the page.
Table 21-8 Example: Using EA to Draw Rectangles (continued)