]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libppd: Added "FXOutputMode" of Fuji Xerox to auto-mapping
authorTill Kamppeter <till.kamppeter@gmail.com>
Tue, 19 Oct 2021 10:14:11 +0000 (12:14 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 19 Oct 2021 10:14:11 +0000 (12:14 +0200)
Fuji Xerox has several high-end printers which take jobs in PDF from
the pre-driverless-IPP era, for which they had the "fxlinuxprint"
driver. The PPD contains an "FXOutputMode" option with an odd
"Quality2" choice for high quality. Now it is solved by an explicit
treatment of this option.

ppd/ppd-cache.c

index 374903bee28beeb05ea2282a048ed79fda98cadf..577b850c67aa8fe25ff36afa73c5341dc2f1ee48 100644 (file)
@@ -2342,6 +2342,15 @@ ppdCacheAssignPresets(ppd_file_t *ppd,
          else if (strcasecmp(c, "SpeedPrior") == 0)
            properties->sets_draft = 10;
        }
+       else if (strcasecmp(o, "FXOutputMode") == 0) /* Fuji Xerox */
+       {
+         if (strcasecmp(c, "Quality2") == 0)
+           properties->sets_high = 10;
+         else if (strcasecmp(c, "Speed") == 0)
+           properties->sets_draft = 10;
+         else if (strcasecmp(c, "Standard") == 0)
+           properties->sets_normal = 10;
+       }
        else if (strcasecmp(o, "RIPrintMode") == 0) /* Ricoh & OEM */
        {
          if (strcasecmp(c, "1rhit") == 0)