×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Numcopies ??

Numcopies ??

Numcopies ??

(OP)
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

RE: Numcopies ??

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.
http://www.coscript.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close