[cups.general] copy print job before printing

Michael R Sweet msweet at apple.com
Fri Oct 17 11:04:18 PDT 2008


michale wrote:
> I do maintain a little cups frontend which allows end users to
> print jobs from a selection list of hold jobs.
> 
> int cups_printJob(int jobid, char *user, char *server, char* queue)
> {
>    // move job to other printqueue==printstation)
>    do_job_op( jobid, server, queue, user, CUPS_MOVE_JOB );
>    // release job on printserver
>    do_job_op( jobid, server, queue, user, IPP_RELEASE_JOB );
>    return (0);
> }
> 
> To allow users to be able to preserve their print job, I need
> something like a "copy print job" functionality, e.g
> 
>    newjobid = do_job_op( jobid, server, queue, user, CUPS_COPY_JOB );
> 
> such that I can release a copy of the original print job and let
> the original job staying queued in my holdqueue. That would allow
> users to print their job again.
> 
> Is that possible ? I have checked the api for a while now and did
> not found anything useful.

It is not generally possible in current releases of CUPS, as there
is no corresponding IPP operation for it.

That said, CUPS 1.4 includes a new CUPS-Get-Document operation that
could be used to implement a "copy job" function - you'd basically
need to create a new job using the options from the original, and
then copy the documents from the original job to the new one.

> Any ideas or hints an how to do this ??
> 
> Thanks,
>  Michael.
> 
> (The whole thing is available on www.hatop.de as qprint,
>  but will be much more useful with this job copy thing)
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups


-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list