🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.postscript
5 messages
5 total messages Started by Grant Hawkes Mon, 09 Nov 1992 15:50
Multiple copies within PS file
#4013
Author: Grant Hawkes
Date: Mon, 09 Nov 1992 15:50
29 lines
2107 bytes
     I am wondering if there is a way to give a ps command to print
multiple copies of the ps file.  I have a two page color postscript
file that I want to send to the color ps printer.  I need several
copies.  I know that I can keep sending the file multiple times, but
I want to know if there is a command to issue to do it.  I looked
at a ps book and couldn't find anything on copies in the index.
Any help would be appreciated.  Thanks.


-- 
===============================================================
Grant Hawkes                      Internet:   haw@inel.gov
Idaho National Engineering Lab    Internet:   haw@ws-haw.inel.gov
P. O. Box 1625 M.S. 2403          Phone:     (208) 526-8767
Idaho Falls, ID 83415             Fax:       (208) 526-6970 
===============================================================
========== long legal disclaimer follows, press n to skip ===========

Neither the United States Government or the Idaho National Engineering
Laboratory or any of their employees, makes any warranty, whatsoever,
implied, or assumes any legal liability or responsibility regarding any
information, disclosed, or represents that its use would not infringe
privately owned rights.  No specific reference constitutes or implies
endorsement, recommendation, or favoring by the United States
Government or the Idaho National Engineering Laboratory.  The views and
opinions expressed herein do not necessarily reflect those of the
United States Government or the Idaho National Engineering Laboratory,
and shall not be used for advertising or product endorsement purposes.
Re: Multiple copies within PS file
#4022
Author: Sean Lamont
Date: Tue, 10 Nov 1992 00:23
27 lines
1626 bytes
In article <1992Nov9.155057.5403@inel.gov> haw@inel.gov (Grant Hawkes) writes:
>
>     I am wondering if there is a way to give a ps command to print
>multiple copies of the ps file.  I have a two page color postscript
>file that I want to send to the color ps printer.  I need several
>copies.  I know that I can keep sending the file multiple times, but
>I want to know if there is a command to issue to do it.  I looked
>at a ps book and couldn't find anything on copies in the index.
>Any help would be appreciated.  Thanks.


edit the ps file, replace instances of "showpage" with
copypage
copypage
[... however many you want, n-1 times where n = number of copies]
showpage   


this will give n copies of the first page, n copies of the second page,
without re-imaging the page.


-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software                                                         
Re: Multiple copies within PS file
#4023
Author: Rick Clements
Date: Tue, 10 Nov 1992 02:08
13 lines
973 bytes
In article <1992Nov10.002304.23079@u.washington.edu> zeno@phylo.genetics.washington.edu (Sean Lamont) writes:
>In article <1992Nov9.155057.5403@inel.gov> haw@inel.gov (Grant Hawkes) writes:
>>     I am wondering if there is a way to give a ps command to print
>>multiple copies of the ps file.  I have a two page color postscript

>edit the ps file, replace instances of "showpage" with
>copypage
>copypage

An easier way is "/#copies n def".  Replace n with the number of copies
you want.
-- 
Rick Clements (RickCl@pogo.WV.TEK.COM)
Re: Multiple copies within PS file
#4051
Author: Vidiot
Date: Tue, 10 Nov 1992 06:49
24 lines
1563 bytes
In article <1992Nov9.155057.5403@inel.gov> haw@inel.gov (Grant Hawkes) writes:
<
<     I am wondering if there is a way to give a ps command to print
<multiple copies of the ps file.  I have a two page color postscript
<file that I want to send to the color ps printer.  I need several
<copies.  I know that I can keep sending the file multiple times, but
<I want to know if there is a command to issue to do it.  I looked
<at a ps book and couldn't find anything on copies in the index.
<Any help would be appreciated.  Thanks.

Add:

	/#copies <value> def

After the first line (usually) the %!

That is the quick and dirty way of doing it.  If you have a multi-page file,
the definition may have to be placed in a different spot, but #copies is the
value that is used to print more than one copy.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Re: Multiple copies within PS file
#4069
Author: KCHAN
Date: Tue, 10 Nov 1992 22:44
15 lines
1106 bytes
Try inserting the following line in a suitable place in the setup block of
your PS file or sending it as a single command before your PS file:

/#copies N def

where N is an integer (don't ask me what the range is!). Ref "Postscript
Language Reference Manual", 2nd ed., Adobe Systems Inc., p629 where example
is given. However be sure to reset the no. of copies to 1 after you have
finished printing your multi-copy document!

-----
Khee Chan
PROFS: esoc(kchan)   BITNET/EARN: kchan@esoc   SPAN: jplsp::kchan
INTERNET: kchan@jplsp.jpl.nasa.gov             COMPUSERVE: 73750,1402
I speak for no-one, and no-one speaks for me, sometimes not even myself!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads