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

Manual change number of copies

Manual change number of copies

Manual change number of copies


I have a print stream (postscript3) in whom the number of copies is always 1. Now I want to change this dynamically. I tried to scan the stream for a string called "/#copies 1 def" and changed the 1 to another number. Done this in a hexeditor works. When I scan a string within a written program I get an error and the printer does not print anything.
Is this the right position for changing the amount of copies?
Can I change the stream with a text-based operation or do I need to work in a hex-mode?

Thanks for your help!


RE: Manual change number of copies

That particular structure is deprecated. It's been replaced by the /NumCopies page device parameter.

Text vs. Hex makes no difference. PostScript is an ASCII based language, though it can contain binary image data.

PostScript is a programming language. If you want to repeate a particular image, including an entire page, you need to use a language structure, such as a forall loop.

Previous language levels had various attempts for "number of copies", all of which were pretty much abandoned in favor of absolute page independence.

In short, if you don't want to program, you need to control number of copies through device control rather than PostScript. Look into, for example, the PJL codes the many printers support.

What /NumCopies does, as with any page device parameter, is send a request to the device. The device may or may not honor the request.

Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting

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