Punching is done on sheet level. Activate punching by setting /Punch to 4. When /Punch is set to 0, punching is disabled and the content of /PunchDetails is ignored. In addition, OutputType must be set to Auto, or to any tray which supports punching. Punch options are provided in the PunchDetails dictionary.
Physical constraints can disable certain punching types. For example, A3 cannot be punched long-edge and A5 can only have 2 holes long-edge.
<<
/Punch 4
/PunchDetails
<<
/Type <integer>
/PunchLocation <string>
/PunchPattern <string>
/ReadingOrientation (portrait | landscape)
>>
>> setpagedevice
The supported values for /PunchLocation and /Type are:
/PunchLocation |
/Type |
Description |
---|---|---|
(Top) |
12 |
Relative to the ReadingOrientation given in PunchDetails. |
(Bottom) |
12 |
|
(Left) |
12 |
|
(Right) |
12 |
The supported values for /PunchPattern are:
/PunchPattern |
Description |
---|---|
(2-hole) |
Number of holes |
(3-hole) |
|
(4-hole) |
|
(fixed) |
Selects a puncher with a fixed punch pattern |
(none) |
No punching |
The punches are placed along the edge defined by /PunchLocation and relative to the /ReadingOrientation. The supported Punch positions according to the /ReadingOrientation are shown in the following picture: