hawkmasterle
Programmer
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
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