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

21-34 The Polygon Group EN
PM, Polygon Mode Command
This command enters polygon mode for defining shapes, such as
block letters or any unique area, and exits for subsequent filling
and/or edging. Fill polygons using the Fill Polygon (FP) command
and/or outline them using the Edge Polygon (EP) command.
PM polygon definition [;]
or
PM [;]
In polygon mode, you define the area of the polygon(s) using graphics
commands. These commands (and associated X,Y coordinates) are
stored in the polygon buffer. The polygon is not printed until you exit
polygon mode and fill and/or outline the area.
z No Parameters — Clears the polygon buffer and enters polygon
mode. Equivalent to (PM0).
z Polygon Definition — Defines polygon mode status as follows.
0 — Clears the polygon buffer and enters polygon mode.
1 — Closes the current polygon (or subpolygon) and remains
in polygon mode; all commands sent following PM1 but before
a PM2 (or the next PM1) are stored as one subpolygon.
2 — Closes current polygon (or subpolygon) and exits polygon
mode.
The following paragraphs explain how to use each parameter. The
order in which you use these commands is very important.
(PM0) or (PM)
Use (PM0) to clear the polygon buffer and enter polygon mode. While
in polygon mode, only certain commands are allowed. The following
list contains these commands:
Parameter Format Functional Range Default
polygon
definition
clamped
integer
0, 1, and 2 0