🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8272

Re: Page selection wanted

#8272
From: Piet van Oostrum
Date: Fri, 21 Apr 1989 16:45
29 lines
1300 bytes
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)
Technical Details
Message-ID: <1267@ruuinf.cs.ruu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!hp4nl!ruuinf!piet
References: <1022@n8emr.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)