🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.laser-printers
Article #332

Re: Counting PostScript Pages

#332
From: Scott Dorsey
Date: Thu, 14 Mar 1991 14:35
13 lines
1039 bytes
In article <9103132037.AA25632@crayola.cs.UMD.EDU> jlg@UNCCVAX.UNCC.EDU (john l grant) writes:
>
>Does anyone have a filter program that will count Postscript
>pages before the file goes to the printer?  I've taken a quick 
>look at the Postscript language and believe such a program would 
>be possible.  It's certainly more involved that looking at the 
>size of the file, but definately possible.

how about
   egrep showpage | wc -l

Crude but fairly efficient.
--scott
Technical Details
Message-ID: <9103141524.AA00940@crayola.cs.UMD.EDU>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ucbvax!GRISSOM.LARC.NASA.GOV!kludge
References: <9103132037.AA25632@crayola.cs.UMD.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ucbvax!GRISSOM.LARC.NASA.GOV!kludge
From: kludge@GRISSOM.LARC.NASA.GOV (Scott Dorsey)
Newsgroups: comp.laser-printers
Subject: Re: Counting PostScript Pages
Keywords: postscript, accounting
Message-ID: <9103141524.AA00940@crayola.cs.UMD.EDU>
Date: 14 Mar 91 14:35:45 GMT
References: <9103132037.AA25632@crayola.cs.UMD.EDU>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: NASA Langley Research Center
Lines: 13
Approved: laser-lovers@brillig.umd.edu