Xref: utzoo comp.lang.postscript:7252 comp.unix.questions:28026 comp.sources.wanted:14844 Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!apple!mrspoc!starnet!mzellers From: mzellers@starnet.uucp (Mark Zellers) Newsgroups: comp.lang.postscript,comp.unix.questions,comp.sources.wanted Subject: Re: selecting pages from PostScript Message-ID: <1991Jan12.194650.25292@starnet.uucp> Date: 12 Jan 91 19:46:50 GMT References: <1991Jan10.171621@madmax.Viewlogic.COM> Reply-To: mzellers@starnet.UUCP (Mark Zellers) Organization: Starnet Connections---Public Access UNIX Lines: 23 In article <1991Jan10.171621@madmax.Viewlogic.COM> kenc@madmax.Viewlogic.COM (Kenstir) writes: > >Is it possible for a filter to select only certain pages >from a PostScript document? I have a huge document >(thanks, OSF/Motif) which I need to print in small chunks >so as not to offend the community at large by hogging >the printer. > It depends entirely on whether the file you are working with is an Encapsulated PostScript file with the appropriate %%Page comments. If so, it is a fairly simple matter to filter out the pages you don't want by looking at the comments. On the other hand, there are PostScript programs that are unencapsulatable (?). Consider the following fragment: /tmpstr 10 string def /Times-Roman findfont 300 scalefont setfont 0 1 9 {tmpstr cvs 100 100 moveto show showpage} for The last line produces 9 pages of output, so to only output pages 4-6 you would actually have to modify the program. Mark H. Zellers decwrl.dec.com!voltaire!bwayne!mark