🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3422

Re: page counting

#3422
From: Henry Spencer
Date: Sun, 21 Oct 1990 00:01
14 lines
1058 bytes
In article <THEWALT.90Oct19095522@canuck.ce.berkeley.edu> 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
Technical Details
Message-ID: <1990Oct21.000124.4623@zoo.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <THEWALT.90Oct19095522@canuck.ce.berkeley.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!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: <THEWALT.90Oct19095522@canuck.ce.berkeley.edu>
Date: Sun, 21 Oct 90 00:01:24 GMT