HP PCL/PJL reference - Printer Job Language Technical Reference Manual

6-48 Environment Commands EN
Example: Using the SET Command
This example uses the SET command to create a desired state
before sending a PostScript job. The SET command is used only to
set those features that affect the printed output and that cannot be set
using the desired personality. After the job has been sent, the RESET
command is issued to return all features to their default values.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Setting PostScript Job <CR><LF>
@PJL COMMENT to Desired State <CR><LF>
@PJL SET RET = MEDIUM <CR><LF>
@PJL SET PAGEPROTECT = OFF <CR><LF>
@PJL SET RESOLUTION = 600 <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE ... PostScript print job — use
~POSTSCRIPT code to set all values that are
~not set using PJL... ^D
<ESC>%-12345X@PJL <CR><LF>
@PJL RESET <CR><LF>
<ESC>%-12345X
Related Commands:
DEFAULT, INITIALIZE, RESET, JOB, EOJ