HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part I
5-14 Page Control Commands EN
Right Margin Command
The Right Margin command sets the right margin to the right edge of
the specified column.
? & a # M
# = Column number
Default = Logical Page right bound
Range = Current left margin - Logical page right bound
The maximum right column is located at the right edge of the logical
page (the HMI setting defines the distance between columns, which
thereby defines the maximum number of columns on the logical
page). If the value field specifies a column which is greater than the
right edge of the logical page, the right margin is set to the right edge
of the logical page. If the value field specifies a column less than the
left margin, the command is ignored.
Margins represent a physical position and once set do not change
with subsequent changes in HMI.
If the cursor position is to the right of the new right margin, the cursor
is moved to the new right margin.
Example
To set the right margin to column 45, send:
?&a45M