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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Numcopies ??

Status
Not open for further replies.

hawkmasterle

Programmer
Jul 26, 2005
1
NL
Hello,
I am a PostScript Newbie.
I want to add the "numcopies" command to exisiting PS2 files.
All files I receive are only 1 copy (one set).
I want to edit the files with PHP and set the numcopies.
Which is the best way?
I have found 2 different examples..
-----------------
featurebegin{
%%BeginNonPPDFeature: NumCopies 3
3 /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
}featurecleanup
-----------------------------
or
--------------------------

> %!PS-Adobe-3.0
> %%Pages: 23
> %%Requirements: numcopies(3) collate
> %%EndComments
> ...Prolog with procset definitions...
> %%EndProlog
> %%BeginSetup
> /#copies 3 def
> %%EndSetup
> ...Rest of the Document (23 virtual pages)...
> %%EOF

or do you have a better solution?

thanks a lot
hawk
 
The magical variable #copies is likely to be supported on all devices. I'd try the 2nt method first because it's easier to code.


Your PostScript expert is just a click away.
 
Status
Not open for further replies.

Similar threads

Replies
10
Views
150

Part and Inventory Search

Sponsor

Back
Top