hold jobs by default (Cups conf or Java)

pieterjandeboeck at yahoo.co.uk pieterjandeboeck at yahoo.co.uk
Wed Jul 28 04:25:11 PDT 2004

Also: you wanted to cancel jobs. thats easier to do. Use the method

-cupsCancelJob(destination, jobID)

destination is printer
jobid is an integer for the printjob

you can get both using:


where I defined statics const ints to make it more readable: the values of the arguments are 0's and 1's. See documentation for the specific values for your needs.

the destination printers and ids can be extracted from the array of jobs you created prior:

cups_job_t  *jobs;

extract values as follows:

currentWindowDestination = jobs[i].dest;
currentWindowJobID       = jobs[i].id;

More information about the cups mailing list