It fixes driverless printing on Pantum BM5100ADW Series and, probably,
on many other devices.
- Without this parameter, /usr/lib/cups/filter/universal generates RGB
image/urf even for monochrome printer
- Pantum BM5100ADW Series rejects to print these RGB images with
the "Print job canceled at printer" status.
- Probably, this issue affects many other devices
See #804 for details.
if (!is_apple && !is_pdf && !is_pwg)
goto bad_ppd;
+ /*
+ * cupsUrfSupported
+ */
+ if ((attr = ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD)) != NULL)
+ {
+ cupsFilePuts(fp, "*cupsUrfSupported: \"");
+ for (i = 0, count = ippGetCount(attr); i < count; i ++)
+ {
+ keyword = ippGetString(attr, i, NULL);
+ cupsFilePrintf(fp, "%s%s", keyword, i ? "" : ",");
+ }
+ cupsFilePuts(fp, "\"\n");
+ }
+
/*
* PageSize/PageRegion/ImageableArea/PaperDimension
*/