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

EN Using Scaling Effectively 19-9
Table 19-2 Example: Changing the Size of a Drawing
E
C
%0B Enter HP-GL/2 mode, using the default
picture frame size and anchor point.
IN; Initialize HP-GL/2 mode.
IP0,0,2000,2000; Set P1 to be (0,0) and P2 to be
(2000,2000).
SC0,10,0,10; Set up user-unit scaling to range from
(0,0) to (10,10).
SP1; Select pen number 1. Even though there
is no physical pen, the SP command
must be used to enable printing.
PA5,5; Begin absolute plotting from the center of
the square (5,5).
CI3; Print a circle with a radius of 3 user-units.
IP2500,500,3500,1500; Input a new P1 and P2 position for
printing the smaller circle.
PA5,5; Begin absolute plotting from the center of
the new square (5,5).
CI3; Print the second circle with a radius of
3 user-units.
E
C
%0A Enter PCL Mode.
E
C
E Reset the printer to complete the job and
eject the page.