Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Staple & QTY Command within Existing PS file

Status
Not open for further replies.

jpstrzoch

Technical User
Mar 24, 2004
59
0
0
US
I am the Operations Manager of a literature fulfillment company and have the following problem. Currently we use a third party WMS application that manages PS files of "electronic SKU's". We want to be able to send a print job to the printer in postscript format, containing all the attributes required to include staple, duplex, simplex, etc as single spooled print job.

Currently if an order requesting 500 copies of a two page document, a single PS file, is scheduled, 500 separate print jobs are sent through the print spooler to the printer via our WMS application. We have attempted to send the print job via the WMS application as a whole document and have successfully plugged the qty to print and a staple command for the multiple page document into the PS file however this results in a single print job that will not staple. The staple command is not getting inserted at each end of each 2 page document. It will print 500 two page docs but will not staple.

Below is the code we have used to manipulate the number of copies and the staple command. Can anyone see where we are going wrong or point me in another direction?


%%BeginNonPPDFeature: NumCopies 500

500 /languagelevel where {pop languagelevel}{1} ifelse

2 ge { 1 dict dup /NumCopies 4 -1 roll put setpagedevice }{ userdict /#copies 3 -1 roll put } ifelse %%EndNonPPDFeature

Thank you in advance for your time.

James Pstrzoch
 
NumCopies is deprecated. You need to use the appropriate setpagedevice dictionary entries.

"setpagedevice" is a PostScript operator.

The required entries are device specific. If your printer doesn't have good documenation, then you can examine the PPD to determine the proper setpagedevice parameters.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top