[cups] Managing PPD options via lpadmin

Michael Sweet msweet at apple.com
Sat Jan 14 08:13:07 PST 2017


What version of CUPS are you using?  There was a known bug that prevented PPD options from being set with -m a while back.

> On Jan 12, 2017, at 7:23 AM, Josef Wolf <jw at raven.inka.de> wrote:
> 
> Hello,
> 
> I am trying to create a printer and set its options in one go. The man page
> for lpadmin states that you can set PPD options like this:
> 
> 
> # lpadmin -p OfficeJet8600 -v socket://printhost.do.main -m hp-ojp8600p.ppd -o DefaultPageSize=A4
> 
> 
> Unfortunately, this don't work for me:
> 
> 
> # grep DefaultPageSize /usr/share/cups/model/hp-ojp8600p.ppd /etc/cups/ppd/OfficeJet8600.ppd
> /usr/share/cups/model/hp-ojp8600p.ppd:*DefaultPageSize: A4
> /etc/cups/ppd/OfficeJet8600.ppd:*DefaultPageSize: Letter
> 
> 
> As we can see, the "-o DefaultPageSize=A4" ist not only ignored. The correct
> value that is stored in the model source file will be overwtitten by the wrong
> value "Letter"
> 
> Why that? Any ideas?
> 
> -- 
> Josef Wolf
> jw at raven.inka.de
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer




More information about the cups mailing list