Article View: comp.lang.postscript
Article #4110Re: PostScript page count filter for Unix
From: Vidiot
Date: Thu, 08 Oct 1992 06:37
Date: Thu, 08 Oct 1992 06:37
30 lines
2030 bytes
2030 bytes
In article <1992Oct7.064348.18507@aurora.dar.csiro.au> spm@dar.csiro.au (McEWAN Shane) writes:
<G'day! In recent weeks I've been given the task of gathering accounting
<information about our PostScript laser printers attached to our central
<server here. Ideally I'd like to keep a record of the number of pages each
<job prints.
<
<I was wondering if anyone has written a program that will read
<through a PostScript file looking for "showpage" as well as any macros that
<include a showpage command.
<
<That's the tricky bit.....you need to effectively write a mini PostScript
<interpreter which is something I'm not quite up to, yet. *sigh*
You hit the nail right on the head. A non-DSC compliant PostScript file
could easily render many pages from a single PostScript line of code. Here's
the even neater part...the number of pages actually printed can be different
each time the line of code is executed.
Your best bet is to obtain the information for each job printed, from the
printer itself. Many printers make available the current printed page count.
You ask the printer the value before and after printing. That will give
you the most accurate count available.
Check the manuals for the printer. If your printer does support page count,
it will be a simple task to get the numbers from the printer.
--
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:
<4231@vidiot.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brownReferences:
<1992Oct7.064348.18507@aurora.dar.csiro.au>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown From: brown@vidiot.UUCP (Vidiot) Newsgroups: comp.lang.postscript Subject: Re: PostScript page count filter for Unix Message-ID: <4231@vidiot.UUCP> Date: 8 Oct 92 06:37:25 GMT References: <1992Oct7.064348.18507@aurora.dar.csiro.au> Reply-To: brown@vidiot.UUCP (Vidiot) Organization: Vidiot's Hangout Lines: 30