I am encoding the files in PostScript and sending this directly to a printer (Cannon Image Runner Adv 8105 PRO) using the command line copy process
I have obtained the PPD file for the printer (CNADV8105E1.PPD), and I am injecting the PS commands into my PS file for stapling as defined in the PPD <</Staple 3 /StapleDetails <</Type 21 /Position (1PLU)>> >> systemdict /setpagedevice get exec I am injecting the staple command in the %%BEGINSETUP block
When my PS file is encoded by acrobat reader (printed using reader to a redmon/ghostscript printer) the staple commands work successfully, however this option is not suitable for the overall desired result as an acrobat reader window opens for each document printed (if multiple documents are printed)
To avoid having to open acrobat reader for each document I am passing the pdf through a .net library (xpdf – pdftops) This encodes the output in a different format of postscript which the printer interprets correctly and prints successfully however, when injecting the staple commands as defined by the PPD into this encoding, the stapling does not work (in fact, no longer are the pages held in escrow before being transferred to the output tray, they are in fact deposited in the output tray as soon as they are drawn)
I have tried other commands from the PPD in this encoding and they do work (such as letterhead)
- Is there a syntax guide for xpdf output postscript so I can rewrite the staple command?
- Is there another staple command I could use?
- How does my printer intepret 2 apparently very different syntax of postscript successfully?
Any help you could provide would be greatly appreciated