[cups] Managing PPD options via lpadmin

Josef Wolf jw at raven.inka.de
Thu Jan 12 04:23:55 PST 2017


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



More information about the cups mailing list