Article View: comp.lang.postscript
Article #4484Re: selecting pages from PostScript
From: Narayan S. Raja
Date: Thu, 17 Jan 1991 08:26
Date: Thu, 17 Jan 1991 08:26
49 lines
2187 bytes
2187 bytes
In article <1091@ecicrl.UUCP>, (Chris Lewis) writes: < In article <1991Jan12.194650.25292@starnet> (Mark Zellers) writes: < >In article <1991Jan10.171621@madmax> (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 < < Slight mistake Mark, you meant "conformant with the document structuring < conventions postscript file". EPS files are files for pictures for enclusion < in other documents, and hence don't have multiple pages - they're essentially < includable images. < < psxlate in the psroff distribution can be modified quite simply to handle < this for conformant documents. In fact, if you have the `Transcript' filters (which you probably do), you can do it quite simply using psrev: "psrev -s 23,65-69,81 file.ps | lpr" will print pages 23,65-69, and 81 on your default printer. Check the psrev man page. This will work with conformant documents. If your document was produced by dvi2ps/dvips you're out of luck. However if you feel like some PostScript hacking you can put %!PS-Adobe-1.0 at the top of your PostScript document, and %%Trailer at the end. Now psrev will at least not reject the document. PostScript hacking is required. Narayan Sriranga Raja.
Technical Details
Message-ID:
<1991Jan17.082652.24288@msuinfo.cl.msu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!midway!msuinfo!chroma.cps.msu.edu!rajaReferences:
<1991Jan10.171621@madmax.Viewlogic.COM> <1991Jan12.194650.25292@starnet.uucp> <1091@ecicrl.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript,comp.unix.questions,comp.sources.wanted Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!midway!msuinfo!chroma.cps.msu.edu!raja From: raja@bombay.cps.msu.edu (Narayan S. Raja) Subject: Re: selecting pages from PostScript Message-ID: <1991Jan17.082652.24288@msuinfo.cl.msu.edu> Sender: news@msuinfo.cl.msu.edu Reply-To: raja@cpswh.cps.msu.edu Organization: PRIP Lab, Comp. Sci. Dept., MSU References: <1991Jan10.171621@madmax.Viewlogic.COM> <1991Jan12.194650.25292@starnet.uucp> <1091@ecicrl.UUCP> Date: Thu, 17 Jan 91 08:26:52 GMT