Newsgroups: comp.lang.postscript Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: page counting Message-ID: <1990Oct21.000124.4623@zoo.toronto.edu> Organization: U of Toronto Zoology References: Date: Sun, 21 Oct 90 00:01:24 GMT In article thewalt@canuck.ce.berkeley.edu (C. Thewalt) writes: >Is there an easy way for me to find out the number of pages contained >in a PostScript file? I don't want to believe the comments, and >showpage is often burried in some other macro, so how can this be done >easily? It can't be. PostScript is too complex. If you can't believe the comment, the only thing you can do is to run it through a PostScript interpreter -- either in a printer or on your system -- and ask the interpreter to give you a page count. -- The type syntax for C is essentially | Henry Spencer at U of Toronto Zoology unparsable. --Rob Pike | henry@zoo.toronto.edu utzoo!henry