Using ddk options in general setup to be overridden during print job

Johan Henselmans johan at netsense.nl
Tue Jan 31 03:58:56 PST 2012


I have set some options for the printer in the InstallableOptions, so 
that the printer by default prints in a certain way:


   Group "InstallableOptions/Options Installed"
     Option "CutMedia/Cut Labels" PickOne AnySetup 10
       Choice "False/No" "<</CutMedia 0>>setpagedevice"
       Choice "PerLabel/After Each Label" "<</CutMedia 4>>setpagedevice"
       *Choice "AllLabels/After All Labels Are Printed" "<</CutMedia 
2>>setpagedevice"


But I want to be able to override that for a specific print jobs:

   Group "General"
     Option "CutMedia2/Cut Labels" PickOne AnySetup 10
       Choice "None/Do not change default options" ""
       Choice "False/No" "<</CutMedia 0>>setpagedevice"
       Choice "PerLabel/After Each Label" "<</CutMedia 4>>setpagedevice"
       Choice "AllLabels/After All Labels Are Printed" "<</CutMedia 
2>>setpagedevice"


The latter options are shown in the Printer Features sub panel in the 
print panel.


In the driver setup this picks up the options that I have set, and shows 
the chosen options if I want to change it afterward, but how can I pick 
up these settings in the General or Extra group so that the chosen 
options in the printer setup are shown?

Or should i use another mechanism to save default print options for a 
specific printer?



-- 
Kind Regards,

Johan Henselmans




More information about the cups mailing list