Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!shelby!agate!ucbvax!tigger.alisa.com!stine From: stine@tigger.alisa.com Newsgroups: comp.protocols.appletalk Subject: Re: LaserWriter accounting Message-ID: <9102062059.AA07519@uunet.uu.net> Date: 6 Feb 91 20:54:48 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 The simplest way to account for how many pages have been printed is to add logic to the spooler controlling the printer to query the printer page count at the beginning of the print job and again at the end of the print job. Then subtract the first page count from the second and you have your job page count. Here's the PostScript you need to send to the LaserWriter to return the current number of pages the printer has printed in its lifetime: %%?BeginQuery: PageCount statusdict begin pagecount end = flush %%?EndQuery: unknown The lines beginning with "%%" are for conformance with Adobe document structuring conventions. dave stine Alisa Systems, Inc. stine@tigger.alisa.com