Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.lang.postscript Subject: Re: Page selection wanted Message-ID: <1267@ruuinf.cs.ruu.nl> Date: 21 Apr 89 16:45:29 GMT References: <1022@n8emr.UUCP> Sender: piet@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, University of Utrecht, Holland Lines: 29 In-reply-to: lwv@n8emr.UUCP (Larry W. Virden) In article <1022@n8emr.UUCP>, lwv@n8emr (Larry W. Virden) writes: ` `What I am hoping to find is some way to indicate to the printer that I only `want to print pages m-n of a full postscript file that I am passing. You could try to redefine showpage such that it only prints the selected pages. Try putting something like this in front of your file (Note: I have not tested this!!!) /count 0 def /pagemin m def /pagemax n def /showpage { /pagecount pagecount 1 add def pagecount pagemin ge pagecount pagemax le and { showpage } { erasepage initgraphics } ifelse } bind def Good luck! -- Piet van Oostrum, Dept of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)