Table 6-4Paper-source commands 1 (continued)

Input source

PCL 5

PCL 6

PCL 6

PostScript

 

Esc&l#H

ubyte #

ubyte_array

/MediaPosition

 

 

MediaSource 2

"string"

# or null/

 

 

 

MediaSource

ManualFeed true

 

 

 

 

or false

Envelope feeder 1

6

 

ENVELOPETRAY

2 false

1Trays 4 through 9 and the envelope feeder are not options for the HP Color LaserJet Enterprise CP4020-CP4520 Series products. The options are included in this table only to show what the Universal Print Driver (UPD) generally supports.

2For the string value, you must include the quotation marks around the variable. For example, ubyte_array "TRAY2" MediaSource is the PCL 6 command for Tray 2.

3Refers to optional trays.

Paper-type commands

The PCL 5 print driver escape sequence for paper type is "Esc&n#Wdpapertype", where "n#" is the number of characters in the paper type plus 1. For example, in the sequence "Esc&n6WdPlain", "Plain" has 5 letters plus 1, for a total of 6.

Table 6-5paper-type commands

Esc&

n#

Wd

Paper type

 

 

 

 

Esc&

6

Wd

Plain

 

 

 

 

Esc&

11

Wd

Preprinted

 

 

 

 

Esc&

11

Wd

Letterhead

 

 

 

 

Esc&

13

Wd

Transparency1

 

 

 

 

Esc&

11

Wd

Prepunched

 

 

 

 

Esc&

7

Wd

Labels

 

 

 

 

Esc&

5

Wd

Bond

 

 

 

 

Esc&

9

Wd

Recycled

 

 

 

 

Esc&

6

Wd

Color

 

 

 

 

Esc&

6

Wd

Light

 

 

 

 

Esc&

13

Wd

Interpaperte

 

 

 

 

Esc&

6

Wd

Heavy

 

 

 

 

Esc&

12

Wd

Extra Heavy

 

 

 

 

Esc&

11

Wd

Cardstock2

 

 

 

 

Esc&

6

Wd

Rough

 

 

 

 

Esc&

7

Wd

Glossy

 

 

 

 

Esc&

12

Wd

Tough Paper

 

 

 

 

Esc&

9

Wd

Envelope

1You must spell out the word "Transparency" in the string, although it is abbreviated as TRNSPRNCY on the control panel.

2The correct command for cardstock is "Esc&n11WdCard Stock", with a space between the "d" and the "S", and with an uppercase "S".

220 Chapter 6 Engineering Details

ENWW