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

EN Using Scaling Effectively 19-11
Table 19-3 Example: Drawing Equal-Size Pictures on a Page
E
C
E Reset the printer.
E
C
&l1O Select landscape orientation.
E
C
%0B Enter HP-GL/2 mode, using the
default picture frame size and anchor
point.
IN; Initialize HP-GL/2 mode.
IP500,500,5450,7500; Set P1 to be (500,500) and P2 to be
(5450,7500).
SC0,10,0,15; Set up user-unit scaling to range from
(0,0) to (10,15).
SP1; Select pen number 1. Even though
there is no physical pen, the SP
command must be used to enable
printing.
PA0,0; Begin absolute plotting from the
origin (0,0).
PD10,0,10,15,0,15,0,0;PU; Pen Down and print from (0,0) to
(10,0) to (10,15) to (0,15) to (0,0);
then Pen Up.
IP5550,500 Input a new P1 and allow P2 to
automatically track it.
PA0,0; Begin absolute plotting from the new
origin.
PD10,0,10,15,0,15,0,0;PU; Pen Down and print from (0,0) to
(10,0) to (10,15) to (0,15) to (0,0);
then Pen Up.
E
C
%0A Enter PCL Mode.
E
C
E Reset the printer to complete the job
and eject the page.