Detecting all cups-pdf devices is easy, to take down all these queues
simply do

for q in `LC_ALL=C lpstat -v | grep 'cups-pdf:/' | cut -d ':' -f 1 | cut -d ' ' 
-f 3`; do
   lpadmin -x $q
done

For setting the PDF printer as default check at first whether there is
already a default printer with "LC_ALL=C lpstat -d | grep 'system
default destination:'" and set PDF as the default printer only if there
is no default printer yet.

You do not restart CUPS when adding or removing printers with the
"lpadmin" command.

-- 
add/remove the PDF printer in CUPS at installation/removal time
https://launchpad.net/bugs/82674

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to