]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Update Generic-PDF_Printer-PDF.ppd 237/head
authorOsamu Mihara <47024029+omihara@users.noreply.github.com>
Mon, 25 May 2020 08:44:56 +0000 (17:44 +0900)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 08:44:56 +0000 (17:44 +0900)
Hi,

Here is a patch  for Generic PDF PPD to enable color/gray scale printing switching.  Original Generic PPD has no color switch, therefore users cannot make black and white printing with color printers.

It adds a PJL RENDERMODE command to PDF print job.  When choosing "Black and White", the printout will be in gray scale (rendered in gray scale by printers), even if PDF is made as color document.
Of course it cannot print in color if the original document is made in black and white or the printer is not color capable :)

I checked it worked with Chrome Browser on Ubuntu as well as on ChromeOS.

Regards,

ppd/Generic-PDF_Printer-PDF.ppd

index 71174954d7fa972793927c24f781b6040f2be4d9..0a5e6edbec80720603bc434705326f3cabc4d6ce 100644 (file)
 *Duplex DuplexTumble/Short-Edge binding: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=SHORTEDGE<0A>"
 *JCLCloseUI: *Duplex
 
+*JCLOpenUI *ColorModel/Color: PickOne
+*OrderDependency: 100 JCLSetup *ColorModel
+*DefaultColorModel: color
+*ColorModel color/Color: "@PJL SET RENDERMODE=COLOR<0A>"
+*ColorModel grayscale/Black and White: "@PJL SET RENDERMODE=GRAYSCALE<0A>"
+*JCLCloseUI: *ColorModel
+
 *JCLOpenUI *Resolution/Resolution: PickOne
 *OrderDependency: 100 JCLSetup *Resolution
 *DefaultResolution: 600dpi