HP LaserJet M4345 MFP - Software Technical Reference (external)

NOTE The envelope feeder and the HP 500-Sheet Stapler/Stacker do not support custom
media sizes.
Media-type commands
The HP PCL 5 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 7-10 HP LaserJet M4345 MFP – Media-type commands
Esc& n# Wd Paper type
Esc& 6 Wd Plain
Esc& 11 Wd Preprinted
Esc& 11 Wd Letterhead
Esc& 13 Wd Transparency
Esc& 11 Wd Prepunched
Esc& 7 Wd Labels
Esc& 5 Wd Bond
Esc& 9 Wd Recycled
Esc& 6 Wd Color
Esc& 6 Wd
Light <75 g/m
2
Esc& 6 Wd Heavy
Esc& 11 Wd
Cardstock > 163 g/m
21
Esc& 6 Wd Rough
Esc& 9 Wd Envelope
1
The correct command for cardstock is "Esc&n11WdCard Stock", with a space between the "d" and
the "S", and with an uppercase "S".
ENWW Media attributes 295
Engineering Details