如何向 send cups 发送 "print only in black ink" 命令?

How to send send cups a "print only in black ink" command?

我尝试让 HP Officejet Pro X476 仅使用黑色墨水打印彩色文档中的纯文本。

在 LibreOffice 中这是可能的,我只需单击 "print text in black" 打印对话框(颜色部分)中的选项。但是,如果我想直接告诉这个杯子,那会是哪个选项呢?

我附上了打印机的当前设置。如果我直接打印到队列中,我会得到彩色的彩色文本,如果我使用具有上述设置的 libreoffice,我会得到黑色的结果...

是否有选项可以调试从 libreoffice 收到的杯子?

感谢任何提示!

root@srv:~# lpoptions -d p1lp1 
copies=1 device-uri=socket://192.168.55.21:9100 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 ppd-timestamp=* printer-commands=ReportLevels printer-info='HP Officejet Pro X476dw MFP' printer-is-accepting-jobs=true **printer-is-colormanaged=true** printer-make-and-model='HP Officejet Pro X476-X576 MFP Postscript (recommended)' printer-state=3 printer-state-change-time=1448749443 printer-state-reasons=none printer-type=8425500 printer-uri-supported=ipp://localhost:631/printers/p1lp1

root@srv:~# lpoptions -d p1lp1 -l
PageSize/Media Size: Letter Legal Executive Statement FanFoldGermanLegal 3x5 4x6 5x7 5x8 *A4 A5 A6 B5 B6 Env3.5x5 4x6.Photo 8.5x13.3889 195x270mm 7.25x10.2361 7.75x10.75 Postcard DoublePostcardRotated Env10 EnvMonarch EnvISOB5 EnvC5 EnvC6 EnvDL EnvChou3 EnvChou4 Custom.WIDTHxHEIGHT
Duplex/Two-Sided: *None DuplexNoTumble DuplexTumble
InputSlot/Paper Feed: Auto Tray1 Tray2 *Tray3 Tray1_Man
HPOption_Tray3/Tray 3: *True False
HPPJLOutputMode/Print Quality: *GeneralOffice Professional Presentation MaximumDPI
HPPJLDryTime/Dry Time: *0 Medium Long
HPPJLSaturation/Saturation: -2 -1 *0 +1 +2
HPPJLInkBleed/Black Ink Spread: Least Less *Default
**HPPJLColorAsGray/Print Color as Gray**: False HighQuality * **BlackInkOnly**
HPRGBEmulation/RGB Color: HPRGBEmulationNone *sRGB PhotoSRGB Adobe VividSRGB

我找到了解决方案:

将颜色打印为灰色(来自 ppd)的设置有效并已处理。

HPPJLColorAsGray/Print Color as Gray: False HighQuality * BlackInkOnly 

但是实际打印输出的设置 "overwrite" 默认值(对我来说有意义),如果文档中有颜色,则使用默认值打印 - 使用彩色墨水。通常可以在打印对话框中控制此行为。例如。在 libreoffice 中,您可以使用一个选项 "print text in black ink" 这将产生真正的黑色文本(而不是混合颜色的黑色)。

在 LaTeX 中,您可以使用 \usepackage[monochrome]{xcolor} 强制所有文本为黑色,从而使用黑色墨水。

在我的情况下,我想直接打印到打印队列,即使在 ppd 中将默认设置设置为使用 BlackInkOnly,但事实并非如此。在我将此选项作为参数添加到我的打印命令后,它按我想要的方式工作:颜色以灰色打印,仅使用黑色墨水。

lpr  -P<printqueue> -o HPPJLColorAsGray=BlackInkOnly ...