[cups] Issuing PS query via CUPS API

Jacob Marble jacobmarble at google.com
Wed Aug 26 13:20:27 PDT 2015


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



More information about the cups mailing list