HP Color LaserJet 5500 Technical Reference Manual page 52

Printer job language - technical reference manual
Hide thumbs Also See for Color LaserJet 5500:
Table of Contents

Advertisement

Example: Using the
JOB Command to
Monitor Job Status
5-6 Job Separation Commands
This example demonstrates a PostScript print job that is
spooled before printing. The job actually consists of three
separate sections (notice the UEL commands that bound
the three sections—the first section does not need a closing
UEL command since the printer is already in PJL mode):
The first section is sent by the spooler. These lines name
the print job and send the USTATUS command so the
spooler can monitor job status.
The next section is a PostScript job sent to the spooler
from a software application.
The last section is sent by the spooler to end the job.
When the last page is completely printed (in the output
tray), the printer returns unsolicited status information
notifying the spooler that the job is complete.
<ESC%>-12345X@PJL <CR><LF>
@PJL COMMENT **Beginning of Job ** <CR><LF>
@PJL JOB NAME = "TF's Monitor Job" <CR><LF>
@PJL USTATUS JOB = ON <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE .. PostScript print job ... ^D
~<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End of TF's Job" <CR><LF>
<ESC>%-12345X
Note
If the spooler received a print job that did not use PJL (that
is, the application generated a print job that consisted of
just "%!PS-ADOBE .. PostScript print job ... ^D", a LaserJet
printer using context-sensitive switching would still print
properly (provided PostScript is installed) and the spooler
would still receive the unsolicited job status information.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents