Staple and punch PostScript operations supported by the ps2afp transform

The following tables list the subset of PostScript information transformed to Advanced Function Presentation (AFP) MO:DCA-P structured fields and triplets to support staple and punch operations. The changes described below should only be done by someone with extensive knowledge of the PostScript language, such as someone writing their own PostScript driver.

The << /Staple 3 information below is a particular example drawn from Default staple locations and Additional PostScript staple details. Both tables contain pertinent information for adding stapling operations to your PostScript data stream.

{ << /Staple 3  /StapleDetails << /Type 17 /Position 17 
         >> >> setpagedevice }
{ << /Staple 3  /StapleDetails << /Type 17 /Position 18 
         >> >> setpagedevice }

This example indicates that the printer will place two staples at the top of a page, whether the page has either a Portrait or a Landscape orientation.

/Staple 3
The key that introduces the StapleDetails Dictionary.
/Type 17
A required key reserved for future use.
/Position
A key that indicates the placement of the staples, using the settings displayed in Additional PostScript staple details.

The << /Punch 4 information below is a particular example drawn from Default punch locations, Additional PostScript punch details, and Punch Setting for the /Pattern value. All three tables contain pertinent information for adding stapling operations to your PostScript data stream.

{ << /Punch 4 /PunchDetails << /Type 7 /HoleType 0 /Pattern 0 /Position 1 
         >> >> setpagedevice }
{ << /Punch 4 /PunchDetails << /Type 7 /HoleType 0 /Pattern 0 /Position 5 
         >> >> setpagedevice }

This example indicates that the printer will place a punch on the left side of a page, whether the page has either a Portrait or a Landscape orientation.

/Punch 4
The key that introduces the PunchDetails Dictionary.
/Type 7
A required key reserved for future use.
/Pattern 0
A key that indicates the default punch setting, using the settings displayed in Punch Setting for the /Pattern value.
Note: Most PostScript drivers use /Pattern 0 because Finishers tend to have one particular setting. /Pattern 0 works with all Finishers. If you specify /Pattern 6 in the PostScript driver and your Finisher only supports two-hole punch, InfoPrint Manager will print the job and generate an error message without performing the finishing.
/Position
A key that indicates the placement of the staples, using the settings displayed in Additional PostScript punch details.

Default staple locations

Staple Key name PostScript Staple
Do not staple None /Staple 0
Staple Not supported /Staple 3

Additional PostScript staple details

Staple details Key name PostScript staple details
Do not staple None Portrait:

   /Position 0


Landscape:

   /Position 0

Single left diagonal LeftDiagonal Portrait:

   /Position 1


Landscape:

   /Position 5

Single left horizontal LeftHorizontal Portrait:

   /Position 3


Landscape:

   /Position 7

Single left vertical LeftVertical Portrait:

   /Position 2


Landscape:

   /Position 6

Single right diagonal RightDiagonal Portrait:

   /Position 9


Landscape:

   /Position 13

Single right horizontal RightHorizontal Portrait:

   /Position 11


Landscape:

   /Position 15

Single right vertical RightVertical Portrait:

   /Position 10


Landscape:

   /Position 14

Double left DoubleLeft Portrait:

   /Position 4


Landscape:

   /Position 8

Double right DoubleRight Portrait:

   /Position 12


Landscape:

   /Position 16

Double top DoubleTop Portrait:

   /Position 17


Landscape:

   /Position 18

Booklet Booklet Portrait:

   /Position 20


Landscape:

   /Position 20

Default punch locations

Punch Key name PostScript Punch
Do not punch None /Punch 0
Punch Not supported /Punch 4

Additional PostScript punch details

Punch details Key name PostScript punch details
Do not punch None Portrait:

   /Position 0


Landscape:

   /Position 0

Left PunchLeft Portrait:

   /Position 1


Landscape:

   /Position 5

Top PunchTop Portrait:

   /Position 3


Landscape:

   /Position 7

Right PunchRight Portrait:

   /Position 2


Landscape:

   /Position 6

Bottom PunchButtom Portrait:

   /Position 4


Landscape:

   /Position 8