User's Manual
PDL Reference Guide for Xerox
®
ConnectKey
®
Products
Custom Media Sizes
This command specifies the custom media size on which to print the job. Insert a media size command within the PCL
portion of the print job.
PS <</PageSize [width height] /CustomPageSize true >> setpagedevice
where
[width height]
is the physical dimension of the paper at 72 points/inch (PS points)
PCL5 [Esc]&f####I for the width
[Esc]&f####J for the length
[Esc]&l101A
where #### is the physical dimension of the paper at 720 points/inch (decipoints).
PCL6 uint16_xy x y attr_ubyte CustomMediaSize ubyte eTenthsOfAMillimeter attr_ubyte CustomMediaSizeUnits
ISO B6 example: 0xd1 0xe2 0x04 0xe0 0x06 0xf8 0x2f 0xc0 0x02 0xf8 0x30
where x is the width (1/10mm) in hex (lsb, msb) and y is the length (1/10mm) in hex (lsb, msb)
Envelope Sizes PCL5 # PCL6
## String
PS [w h] Points
#9 ½ Booklet
9 x 12”
(228 x 304 mm)
180 0x10 na-9x12-envelope [648 864]
#10
4.125” x 9.5”
81 0x05 COM10 [297 684]
C4
(229 x 324 mm)
171 0x12 iso-c4-envelope-c4 [649 918]
C5
(162 x 229 mm)
91 0x02 C5 [459 649]
DL
(110 x 220mm)
90 0x02 DL [312 624]
Monarch
3.875” x 7.5”
80 0x07 MONARCH [279 540]
Media Type
Media types are used to distinguish the type of media a job requires.
PS <</MediaType (string) >> setpagedevice
PCL5 <Esc>&n#Wdstring
where # is the length of string+1, and string from the table below
PCL6 ubyte_array uint16 ## ## string attr_ubyte MediaType
Example: 0xc8 0xc1 0x0C 0x00 transparency 0xf8 0x27
where ## ## is the length of the string in hex (lsb, msb), and string from the table below.
PS (string) value PCL5 examples PCL6 Hexadecimal and String
cardstock <Esc>&n10Wdcardstock 0x09 0x00 cardstock
envelope <Esc>&n9Wdenvelope 0x08 0x00 envelope
Labels <Esc>&n7Wdlabels 0x06 0x00 labels
Letterhead <Esc>&n11Wdletterhead