[cups-devel] how to get the page info of a canceled job?
Michael Sweet
msweet at apple.com
Thu Jun 26 08:50:02 PDT 2014
To get all of the attributes in the job you'll need to use cupsDoRequest with an IPP_OP_GET_JOBS request.
The code in systemv/lpstat.c should be a useful template.
On Jun 26, 2014, at 11:46 AM, liu3 <liugongquan123 at 163.com> wrote:
>
>
> hai Michael Sweet:
>
> I posted a message:" For a cancled job, there will not be any information logged in the page_log file, i.e, I can not get the page range, copies ...etc for a canceled job. Is there any way to know these information? "
> you wrote:
> We provide API (cupsGetJobs/cupsDoRequest) and a tool (ipptool) for getting job history via the supported IPP interface, and those will always work regardless of the underlying storage model being used by cupsd.
> Actually, so far as I know, you can not get the page range and copies info by calling the cupsGetJobs api, since there is no page range and copies info in struct cups_job_s, so anyother way to this issue?
>
>
> Thank you very much for your reply.
>
>
>
>
>
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list