[cups] Issuing PS query via CUPS API

Michael Sweet msweet at apple.com
Wed Aug 26 13:39:35 PDT 2015


Jacob,

Don't try to do configuration from your print dialog.  The DefaultXxx keyword should already be set for the installable option...


> On Aug 26, 2015, at 4:20 PM, Jacob Marble <jacobmarble at google.com> wrote:
> 
> I'm writing a print dialog, which should hide InstallableOptions that are
> not installed.
> 
> In cases where a query keyword appears (*?LargeCapacityTray in the example
> below) can I safely ignore it, assuming that the default keyword
> (*DefaultLargeCapacity) is the result of the query?
> 
> If not, should I expect to execute the query via the CUPS/IPP/HTTP API? I
> looked into this, but it seems that is a function of a backend filter, not
> the function of a client.
> 
> If it matters, I'm using CUPS 2.0 on OS X 10.10.5, but trying to support
> back to CUPS 1.5.
> 
> Thanks,
> 
> Jacob
> 
> *OpenUI *LargeCapacityTray/Large Capacity Tray: PickOne
> *DefaultLargeCapacityTray: NotInstalled
> *LargeCapacityTray NotInstalled/Not Installed: ""
> *LargeCapacityTray Installed/Installed: ""
> *?LargeCapacityTray: "
> save
> mark
> (NotInstalled)
> userdict /86f6369627 known {
> userdict /86f6369627 get
> /perifdict get /inslot get dup type /arraytype eq {
>   {
> dup 6 eq {(Installed) exit} if
> pop
>   } forall
> }{pop} ifelse
> }if
> = flush
> cleartomark
> restore
> "
> *End
> *CloseUI: *LargeCapacityTray
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair




More information about the cups mailing list