🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6463

Re: Page accounting

#6463
From: Vidiot
Date: Fri, 22 Jan 1993 06:21
27 lines
1844 bytes
In article <86579@ut-emx.uucp> tai@utpapa.ph.utexas.edu (Tai Morris) writes:
<I'm new to this newsgroup so I hope this question hasn't been answered
<too many times already...
<
<I need a program that parses a postscript file to see how many pages will
<be printed. Please don't tell me this is impossible - it's impossible that
<it is impossible because postscript printers know how to parse postscript
<files. Otherwise, the printer could be fooled, too.

You are right in that this question gets asked and answered ALL the time.

The only program that can give you an accurate count of pages for ALL types
of PostScript files is a PostScript interpreter...yep, the PostScript printer.
The only other method is to use GhostScript, another PostScript interpreter.
I believe someone has some kind of post processing that will get the final
page count from GhostScript.

In other words, you just can't "look" at the file and find the magical page
count buried within ALL types of PostScript files.

BTW, in theory, one could write a piece of PostScript code that would print
pages until the power failed.  You'll never get a page count from that program.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Technical Details
Message-ID: <4817@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
References: <86579@ut-emx.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Page accounting
Keywords: postscript, page, accounting
Message-ID: <4817@vidiot.UUCP>
Date: 22 Jan 93 06:21:53 GMT
References: <86579@ut-emx.uucp>
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout
Lines: 27