HP PCL/PJL reference - Printer Job Language Technical Reference Manual
11-16 Programming Tips for Using PJL EN
Jobs That Notify the User to Load Specific Forms or
Paper
This example displays a message to “LOAD FORM 1040” and takes
the printer off-line. When the form is loaded and the On Line or
Continue key is pressed, the form is printed.
<ESC>%-12345X@PJL <CR><LF>
@PJL JOB NAME = "Job #65432" <CR><LF>
@PJL OPMSG DISPLAY = "LOAD FORM 1040" <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E ... PCL print data ... <ESC>E
~<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "Job #65432" <CR><LF>
<ESC>%-12345X
Jobs That Control Printer Resources and Print
Selected Pages
The following job prints 1 copy of pages 5 through 8 of the print job.
The START command tells the printer to process pages in
non-printing mode until the specified page (in this case, page 5). The
END command specifies the last page to print. If the END command
is not included, the job prints from page 5 through the end of the
document.
If you need to print more than one copy of each page, send the job
multiple times using the START and END options to get collated
copies. Using the “@PJL SET COPIES = number of copies”
command to print multiple copies of a selected page causes
unexpected results because the printer counts physical pages, not
multi-copy collated pages.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Printing selected pages <CR><LF>
@PJL JOB START = 5 END = 8 <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E . . . PCL print job . . .<ESC>E
~<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ <CR><LF>
<ESC>%-12345X