printing PDF appears always grey, no color
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CUPS |
Fix Released
|
Unknown
|
|||
atril (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
cups (Ubuntu) |
Fix Released
|
High
|
Till Kamppeter | ||
Jammy |
Fix Released
|
High
|
Till Kamppeter | ||
Lunar |
Fix Released
|
High
|
Unassigned | ||
okular (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After upgrading from 20.04 LTS to 22.04 LTS I can't print colored PDF document. The print appears always b/w regardless color printing was enabled or not. Printing from LibreOffice produces a color print. This behavior (bug) is reproducible on three upgraded machines. It would be nice to have color print back again.
[ Impact ]
If the PPD file for a printer has a ColorModel option and the only choice in it for printing in color is not named RGB but CMYK instead, the printer cannot be made printing in color with intuitive methods, usually selcting the color choice in the print dialog (which makes ColorModel=CMYK be sent along with the job).
Only an ugly command-line-based workaround, running the command
lpadmin -p PRINTER -o print-color-
makes the printer print in color.
An example for printers with such PPDs are printers from RICOH and OEM (Lanier, InfoTec, Savin, ..), so many high-end color laser printers are affected.
[ Test Plan ]
Remove the workaround if you had applied it:
lpadmin -p PRINTER -R print-color-
If you have an affected printer, print a PDF file (or use the print functionality in an application) with colored content and choose the setting for color printing in the print dialog. When printing via command line do
lp -d PRINTER -o ColorModel=CMYK FILE.pdf
Without the SRU applied you will get a grayscale/
To test without a printer:
Stop CUPS:
sudo systemctl stop cups
Edit /etc/cups/
FileDevice Yes
and start CUPS again:
sudo systemctl start cups
Then create a queue using the attached sample PPD file:
lpadmin -p color-test -E -v file:/tmp/printout -P Ricoh-PDF_
Print a file to this queue as described above. When the job is done ("lpstat" does not show it any more), open /tmp/printout with a text editor. Check whether it contains a line
@PJL SET RENDERMODE=COLOR
near its beginning, and NOT a line
@PJL SET RENDERMODE=
[ Where problems could occur ]
The patches are simple and they are also for some time in newer CUPS versions (2.4.2 and newer) which are included in several distributions (Ubuntu 22.10, 23.04, and others) and did not cause any complaints about color printing. So the regression potential is very low.
CVE References
affects: | ubuntu → cups (Ubuntu) |
tags: | added: jammy |
Changed in cups: | |
status: | Unknown → New |
Changed in cups: | |
status: | New → Fix Released |
Changed in cups (Ubuntu Lunar): | |
importance: | Undecided → High |
Changed in cups (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in cups (Ubuntu): | |
status: | Confirmed → Fix Committed |
no longer affects: | cups (Ubuntu Lunar) |
Changed in cups (Ubuntu Jammy): | |
importance: | Undecided → High |
status: | New → In Progress |
no longer affects: | okular (Ubuntu Lunar) |
no longer affects: | okular (Ubuntu Jammy) |
no longer affects: | atril (Ubuntu Lunar) |
no longer affects: | atril (Ubuntu Jammy) |
description: | updated |
Changed in cups (Ubuntu Jammy): | |
status: | Fix Committed → Triaged |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1971242/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]