The script magic you propose for prerm should work well as-is. For postinst, what I would use:
lpadmin -p PDF -E -v cups-pdf:/ -m PostscriptColor.ppd -o PageSize=$(paperconf) -o printer-is-shared=no paperconf(1) from libpaper-utils (added to Depends) tells us the default paper size. What I need before that is a way to check: 1) Is there already a printer called PDF? if there is, add a digit to the printer name we're about to create. 2) Is there any default printer already? If there is, don't set as default. -- 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
