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.
--
brandon s. allbery [os/2][linux][solaris][japh] [EMAIL PROTECTED]
system administrator [WAY too many hats] [EMAIL PROTECTED]
electrical and computer engineering KF8NH
carnegie mellon university ["better check the oblivious first" -ke6sls]
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------