Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!samsung!uunet!cis.ohio-state.edu!ucbvax!hplabs!pyramid!infmx!cortesi From: cortesi@informix.com (David Cortesi) Newsgroups: comp.lang.postscript Subject: Change PS file to produce multiple copies Message-ID: <1991Jun25.214828.16868@informix.com> Date: 25 Jun 91 21:48:28 GMT Sender: cortesi@informix.com (David Cortesi) Organization: Informix Software, Inc. Lines: 46 I want to operate on a saved PostScript listing using UNIX tools, with the aim of producing a new file that will print multiple copies of each page without re-imaging the page for each copy. We have a utility called "ditorder" that is supposed to do this (part of the Elan "eroff" package) but it barfs on PostScript files produced by Frame 2.0d on the NeXT. We have the Transcript package from Adobe (it is distributed with the NeXT software package) but it doesn't seem to contain a utility to do this. All it has is "psrev" which will select pages but not print them in multiples. Attached below find a fragment from the end of one page and the start of the next. Surely there is some simple thing I can do in this area of a .ps file so that the just-imaged page will display times without having to be re-drawn entirely! Like, just repeat the "showpage" line times? Thanks for any help. Dave Cortesi (cortesi@informix.com) ----------------------------------------------------------------- ...commands to image page 1... grestore grestore showpage __NXsheetsavetoken restore %%PageTrailer %%Page: 56 2 %%PageBoundingBox: 36 72 576 720 %%PageFonts: (atend) %%BeginPageSetup %%PaperSize: Letter /__NXsheetsavetoken save def 36 72 translate gsave -36 -72 translate /__NXbasematrix matrix currentmatrix def grestore gsave 0 0 540 648 rectclip [1 0 0 -1 0 648] concat -36 -72 translate %%EndPageSetup gsave ...commands to image page 2...