[comp.lang.postscript] Printing Postscript on multiple

don@upba.UUCP (08/16/89)

/* Written  2:09 pm  Aug 15, 1989 by batcheldern@level.dec.com.UUCP in upba:comp.lang.postscript */
/* ---------- "Re: Printing Postscript on multiple" ---------- */
In general, there is no simple thingy that you can put at the top of any
PostScript file to get it to print on multiple pages. The main problem
is that you have to actually execute the file in its entirety for each
sheet that you need. The reason is that PostScript only works on a
single bitmap at once, 
and each operator puts its mark in only the current bitmap.

	If I am understanding you right, all you want to do is make several
	copies of the file to print one right after the other without waiting
	for the file to execute again, right?

	If so try putting this line in just before the showpage and see if
	it works. 

	1 1 # { copypage } for

	# being one less than the number of copies that you want printed.

lau@kings.wharton.upenn.edu (Yan K. Lau) (08/17/89)

In article <147500003@upba> don@upba.UUCP writes:
>
>/* Written  2:09 pm  Aug 15, 1989 by batcheldern@level.dec.com.UUCP in upba:comp.lang.postscript */
>In general, there is no simple thingy that you can put at the top of any
>PostScript file to get it to print on multiple pages.
                                   ^^^^
>
>	If I am understanding you right, all you want to do is make several
>	copies of the file to print one right after the other without waiting
>	for the file to execute again, right?

I think you are wrong.  I think the question is how to print something on
several pages when it doesn't fit on one page.  The PostScript tutorial
has a nice example for doing this.  However, as I have found out and
others have pointed out, the entire procedure must fit in memory.  It is
actually called each time for each portion of the picture, moving the
origin and clipping the region.  I haven't found a way to get around the
memory problems and would like to hear any solutions others have thought
off.
>
>	If so try putting this line in just before the showpage and see if
>	it works. 
>
>	1 1 # { copypage } for
>
>	# being one less than the number of copies that you want printed.

Actually, there is a simpler way to do this.  Just use the implicit
#copies parameter for showpage, e.g. /#copies <num> def.


Yan.
---
      Yan K. Lau                    + the last message of a newgroup will be:
   )~                               +   a) longer than one screen &
 ~/~  lau@scrolls.wharton.upenn.edu +   b) something you're not interested in.
 /\   University of Pennsylvania    + your decision, 'n' key or space bar?