Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!fischer From: fischer@iesd.auc.dk (Lars P. Fischer) Newsgroups: alt.sources.wanted Subject: Re: Page counter Message-ID: Date: 9 May 91 00:55:18 GMT References: <1991May7.190659.24734@serval.net.wsu.edu> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 22 In-reply-to: hakimian@tek4.eecs.wsu.edu's message of 7 May 91 19:06:59 GMT >>>>> hakimian@tek4.eecs.wsu.edu (Karl Hakimian - staff) said: Karl> I am looking for a program that will count the pages it would Karl> take to print a file. It should be able to recognize different Karl> file types (ascii, pcl, postscript, etc.). Doing this for PostScript will be close to impossible. PostScript is a (turing-machine-equivalent) programming language, so a given piece of PostScript can generate an arbitrary number of pages. You *could* run the code through a PostScript interpreter and see what happens, or you could try to solve the halting problem. Karl> I would like to use this as part of a printer accounting, A PostScript printer should be able to do two-way communication. You send it code, at it reports back with error messages and/or number of pages printed. check your printer manual. /Lars -- Lars Fischer, fischer@iesd.auc.dk | It takes an uncommon mind to think of CS Dept., Univ. of Aalborg, DENMARK. | these things. -- Calvin