Closed tresf closed 8 months ago
IPP has Cancel-Job operation that will probably work. There is also a Purge-Jobs operation, but that also clears out the completed jobs, not just pending.
I was able to implement this for cups https://github.com/Vzor-/tray/tree/cancel-jobs. Implementing it for windows will likely be a little bit harder. We need the setJob method, but it is not part of JNA's Winspooler class, so we will likely have to add it ourself.
We need the setJob method, but it is not part of JNA's Winspooler class, so we will likely have to add it ourself.
This is now working, also it will be included in the next version of JNA's Winspooler https://github.com/java-native-access/jna/pull/1556
Request to add the ability to clear a print queue. It should be assumed that a person can only clear their own jobs.
Windows:
JOB_CONTROL_DELETE
onSetJob
.MacOS/Linux:
CANCEL
on the print job?