Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cfGetPrinterAttributes(): Poll "media-col-database" separately if needed
To get the full set of printer properties from a driverless IPP printer one does a "get-printer-attributes" IPP request with the attribute "requested-attributes" set to "all,media-col-database" (note that "all" does not include "media-col-database" because this attribute is often very long, it contains all valid combinations of media size, media type, media source, and margins). For some printers this fails and we fall back to just "all" and lose valuable information. But some of those printers which do not support "requested-attributes" set to "all,media-col-database" support "requested-attributes" set to "media-col-database" alone and this we now make use of, by polling "media-col-database" separately and adding it to the IPP response of "all" if needed. We discovered such a printer here: #492 Backported from libcupsfilters (2.x), commit 789cca62da
- Loading branch information