I'm trying to send a simple PostScript to a Konica Minolta C364 printer which has a finisher for stapling. I'm able to print a couple of pages and staple them if I do this by printing let's say, a PDF file directly and selecting the appropriate settings from the printing user interface. However, I'm not able to do the same via PostScript commands.
I've tried numerous different commands, adding them both in the beginning and the end of the .ps
file, starting from the simple one:
<< /Staple 3 >>
Then trying some additional options:
<< /Staple 3 /StapleDetails << /Type 17 /Position 17 >> >> setpagedevice
or
<</Staple 3 /StapleDetails <</Type 1 /StapleLocation(SinglePortrait)>> >> setpagedevice
And then more suggestions like:
<</BindingLocation (LongEdge) >> setpagedevice
<</Collate true /Rotate false /Jog 0>> setpagedevice
<</Staple 2 /StapleDetails <</Type 5 /Position (1PLU)>> >> setpagedevice
None of them have any effect - the document gets printed but no stapling is performed whatsoever.
Am I using the wrong commands or is it something else that I'm missing?
I also tried looking for a simple premade .ps
file in the Internet which has those same commands but I was not able to find one. Many different suggestions in different forums and websites but nothing that I've tried had any success so far so any suggestions are welcome. Thank you!
EDIT:
Here is a link to a sample .ps
file that I'm using:
https://www9.zippyshare.com/v/QW6w7yHl/file.html
Unfortunately I have to do it via a link as the code is way too long, ~11k rows.
EDIT2: After saving the PostScript to a file instead of sending it to the printer I was able to look through the generated code and extract the following lines which do the trick of stapling if added on top of the file:
@PJL COMMENT
@PJL SET ORIENTATION = PORTRAIT
@PJL SET BINDING = LEFT
@PJL SET FINISH = LEFT1POINT
@PJL SET EDGEMATCHING = FINISH
@PJL ENTER LANGUAGE = POSTSCRIPT
Hopefully they will get added to the answer below!