I successfully managed to count the printed pages with Cups:ipp.
Now I need the amaount of pages before the get printed. E.g. spool a
job to queue that is in hold state.
And then I need to count the pages that are spooled to that job.
Thanks for any help.
Jürgen
Attached the code snippet for counting printed pages:
static const char * /* O - Password or NULL */
cups_passwd_cb(const char *prompt) /* I - Prompt */
{
//Always return NULL to indicate that no password is available...
return (NULL);
}
- (UInt32) getPageCount:(NSString*)printerName
{
http_t *http; /* HTTP connection to server */
ipp_t *request, /* IPP Request */
*response; /* IPP Response */
ipp_attribute_t *attr; /* Current attribute */
cups_lang_t *language; /* Default language */
char uri[HTTP_MAX_URI],*job_name; /* printer-uri attribute */
int job_id; /* job-id attribute */
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden