On Thu, Jan 04, 2001 at 01:47:06PM -0500, Brandon S. Allbery KF8NH wrote:
> On Thursday, January 04, 2001 12:24:24 PM -0500, Kenneth Tindle 
> <[EMAIL PROTECTED]> wrote:
> +-----
> | It seems to me that "forewarned is forearmed"- knowing that jobs can
> | be encapsulated, you simply write your parser to deal with that fact
> | from the beginning.  If the printer can interpret the data, then a
> | sufficiently intelligent parsing program should be able to do the same.
> | Did I miss something important?
> +--->8
> 
> There's the minor issue that determining the true page count of random 
> PostScript documents involves solving the Halting Problem....
> 
> The evil thing about PostScript is that it is a full programming language. 
> Generally one has to resort to trusting DSC comments or counting instances 
> of "showpage", both of which can be tricked fairly easily.  One can get 
> trickier but there's always another way to defeat it (e.g. if you run a job 
> through Ghostscript to get the page count, not only does it take longer to 
> print but it's also possible to write PostScript code which generates 1 
> page from Ghostscript and 200 on a real printer).
> 
> The LPRng HOWTO says it best:  printer accounting is a lost cause.

Really ? I think the ifhp approach (sending a separate ps get pagecount job before
printing, the print the user code and then again send the ps get pagecount
job) is rather save. How can that be fooled ? (without cracking the
printer and things like that nicely described in the HOWTO ...)
And with ps inside pjl the accounting sitiation is even better,
or ?

My original question was rather a convience approach for the user: Give
them the information of the ps output, if he use a wellformed ps file,
he would see his pages (from his large job) printing, if he uses a
bad ps file, he well get nothing or wrong information -> not my problem !

Greetings

  Hermann

-- 
Bildverarbeitungsgruppe des Interdiziplinaeren Zentrums fuer
wissenschaftliches Rechnen, Universitaet Heidelberg
INF 368; 69120 Heidelberg; Tel: (06221)54-8826, -6314  Fax: -8850
Email: [EMAIL PROTECTED]

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to