Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!dftsrv!hq!mitch From: mitch@hq.af.mil (Mitch Wright) Newsgroups: comp.lang.postscript Subject: Re: PostScript page counter? Message-ID: Date: 30 Jul 90 20:57:39 GMT References: <1990Jul26.173633.13911@msuinfo.cl.msu.edu> <1990Jul30.153325.15342@zoo.toronto.edu> Sender: mitch@hq.af.mil Organization: Air Force HQ, The Pentagon Lines: 30 /* * In article <1990Jul26.173633.13911@msuinfo.cl.msu.edu> * tdd@convex.cl.msu.edu (Thomas D. Davis) writes: * */ Thomas> looking for software that will read a PostScript file and do nothing Thomas> more than determine the number of pages it will print. Does anyone Thomas> know of such a beast? For a ``guess-timate'', I do an egrep(1) for the word "showpage". Many times this is set to another function name that does the showpage along with other routines. Obviously, you would have to search for that string instead. The number of pages **should** then be: (# found) -1* -1** *= Subtract one if the string is a declared routine **= Subtract one if there is a default header page WARNING:: This will ONLY be a rough estimate! -- ..mitch mitch@hq.af.mil (Mitch Wright) | The Pentagon, 1B1046 | (202) 695-0262 The two most common things in the universe are hydrogen and stupidity, but not necessarily in that order.