Lets say I take 10 ps files and I copy them together in a text editor then send it to a printer as 1 file. Is it possible to have each job in the master file get separately stapled?
1) Clobbering together a bunch of PostScript files will almost certainly produce unexpected results. Well, unexpected that is if you expect that to WORK!! There are specific techniques you have to learn if you wish to concantenate a collection of disparate PostScript files. I can teach you these, if you wish.
2) Stapling is a device-specific operation. PostScript is a device-independent language. The instructions for stapling then will need to use a PostScript operator called "setpagedevice", with the parameters specified by your hardware manufacturer.
If all of this is beyond what you want to learn, look at using a PDF workflow, just distill all your files separately, use Acrobat to assemble your document and author a JDF file for Job Definition (stapling).
I know what my staple commands for each device are,
I have tried the following for my N4025 to try to staple
the second document but instead none were stapled.
Here is the code I used:
%!PS-Adobe-3.0
%Exact copy of next ps here
%%EOF
false 0 startjob pop
I didn't analyze your code in too much detail, I don't have the time at the moment. I can tell you that you are indeed concatenating your files correctly, with
false 0 startjob pop
between jobs. And you are using setpagedevice for your page-level parameters, as you should. So, rest assured you aren't crazy and you're doing things the "right way".
But take a closer look at the CompuSetDict procset. It appears to redefine most of the stuff you need, including setpagedevice, to be no-ops! So the problem may be that your setpagedevice operator has been redefined to pop your parameters off the stack!
As a debug step to see if this is the problem, comment out the
CompuSetDict begin
line. Replace each _DSC_SV with "save", _DSC_RS with "restore" and _DSC_SP with "showpage".
See how your job runs without using the CompuSetDict dictionary.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.