![background image](http://html.mh-extra.com/html/hp/4600-color-laserjet-laser-printer/4600-color-laserjet-laser-printer_technical-reference-manual_163672031.webp)
Some Sample
PJL Jobs
This section consists of two basic PJL jobs that illustrate
how to use PJL. The first job changes a few printer control
panel settings and prints a PCL file. The second job prints a
PCL file followed by a PostScript file. (The
~
symbol
indicates that the command line is actually part of the
previous line.)
Example: Changing
Control Panel
Settings
This example simulates using PJL to control printer
features that are not available in a particular application
program. In this case, the features to be modified are the
number of copies and the Resolution Enhancement
technology setting.
<ESC>%–12345X@PJL COMMENT *Start Job* <CR><LF>
@PJL JOB NAME = "Sample Job #1" <CR><LF>
@PJL SET COPIES = 3 <CR><LF>
@PJL SET RET = OFF <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E. . . . PCL job . . . .<ESC>E
~
<ESC>%–12345X@PJL <CR><LF>
@PJL EOJ<CR><LF>
<ESC>%–12345X
Example: Switching
Printer Languages
This example contains two print jobs, one PCL and one
PostScript. The PCL job prints first, then PJL code switches
the printer language to prepare for the PostScript job.
<ESC>%–12345X@PJL <CR><LF>
@PJL COMMENT ** Beginning PCL Job ** <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
@PJL SET LPARM : PCL SYMSET = DESKTOP <CR><LF>
<ESC>E . . . . PCL job . . . .<ESC>E
~
<ESC>%–12345X@PJL COMMENT End PCL <CR><LF>
@PJL COMMENT Ready for PostScript Job <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE ... PostScript print job ... ^D
~
<ESC>%–12345X
Using PJL 3-3
Summary of Contents for 4600 - Color LaserJet Laser Printer
Page 18: ...1 6 Introduction to PJL ...
Page 36: ...3 8 Using PJL ...
Page 46: ...4 10 Kernel Commands ...
Page 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Page 108: ...6 46 Environment Commands ...
Page 180: ...9 18 PJL File System Commands ...
Page 212: ...10 32 Programming Tips ...
Page 262: ...B 6 PJL Command Summary ...
Page 302: ...Glossary 10 ...