[TriLUG] CUPS : displaying number of pages?

Jeremy Portzer jeremyp at pobox.com
Thu May 6 17:18:33 EDT 2004


On Thu, 2004-05-06 at 16:59, Timothy A. Chagnon wrote:
> Looks like the cups_job_t struct only contains size in kilobytes.
> http://www.cups.org/spm.html#cups_job_t
> 
> I'm guessing that the number of pages only gets evaluated when the file
> is first submitted with range or other options.  Looks like you'd have
> to do some coding within CUPS to make it display # of pages.
> 

Yeah, it seems that it only determines the number of pages after the job
is printing, when it sends it through a filter involving the "pstops"
utility.  There is a convoluted function that does this and as a side
effect logs the number of pages to /var/log/cups/page_log.  Now if only
I could figure out how to get the relevant information into the job
control panel... and I hate C.  Ugh.

--Jeremy

-- 
/---------------------------------------------------------------------\
| Jeremy Portzer        jeremyp at pobox.com      trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040506/ea3e13cb/attachment.pgp>


More information about the TriLUG mailing list