Bug 189014

Summary: does not print in grayscale color mode
Product: [Applications] okular Reporter: Dimitris Karnoutsos <dkarnout>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid, david.goller, gerald.deppe, gita.benadi, greenrd, ietc, invuladres, jlayt, nortexoid, oliver.henshaw, scitrin, virgolus
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dimitris Karnoutsos 2009-04-07 09:23:58 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

When i select printing in grayscale color mode, and printing in pdf file, i get a colorful file instead. (i have no color printer so i cannot check if bug exists printing to printer).
Comment 1 Dimitris Karnoutsos 2009-05-12 17:17:27 UTC
I use kpdf instead of okular and everything is fine. problem solver
Comment 2 Pino Toscano 2009-05-12 17:23:39 UTC
Funny joke.
Comment 3 Pino Toscano 2009-05-31 19:27:08 UTC
*** Bug 194778 has been marked as a duplicate of this bug. ***
Comment 4 ietc 2009-07-14 01:56:27 UTC
Confirm: grayscale color mode print option is ignored by Okular for me.  Okular always prints in color UNLESS I go to Properties -> Advanced and set the PPD there (which leads to its own issue of the setting 'sticking' until I change it back in the next print job).  Konqueror, by contrast, prints in grayscale when the grayscale print option is selected.

By the way, grayscale is not in effect when printing to a PDF file, either, but I am not sure if it is because of this issue or if the PDF printer simply does not support it the same way it apparently does not support multiple "Pages per Sheet" (as John Layt describes in Bug #195684 ).

Okular version 0.8.90
Using KDE 4.2.96 (KDE 4.3 RC2) "release 142"
OpenSUSE 11.1
Comment 5 John Layt 2009-09-29 23:07:21 UTC
For certain file types, Okular chooses to use the original source file and print it using lpr rather than painting it using Qt, as this gives the maximum quality print resolution.  Unfortunately, the Color Mode option in the Actions tab of the print dialog is implemented by Qt while painting the print job, i.e. it sets the brush color to black when drawing the document if this option is set.  There is no specific option in lpr that we can set to print in grayscale.

There are two possible solutions here.  

The first is to see if the ps print file produced by poppler or spectre can have an option set to be rendered in grayscale instead of color.  This would be the preferred option.

The second is to try use the printer specific PPD option that some but not all printers have to set the printer itself to print in Grayscale (this is the Grayscale option shown in the Properties/Advanced part of the dialog).  This may be able to be set through lpr but will need some testing.
Comment 6 John Layt 2009-09-29 23:07:41 UTC
*** Bug 206081 has been marked as a duplicate of this bug. ***
Comment 7 Albert Astals Cid 2009-09-29 23:24:34 UTC
I'm almost sure we can make poppler print in grayscale, not so sure about spectre though.
Comment 8 Albert Astals Cid 2009-09-29 23:34:51 UTC
I might have been too optimistic, a quick look at poppler says it's not easy

Maybe this could be implemented if ever we get back the pre-printing filtering capabilities
Comment 9 S CITRIN 2010-09-05 20:31:33 UTC
*** Bug 250271 has been marked as a duplicate of this bug. ***
Comment 10 Pino Toscano 2011-07-07 07:43:33 UTC
*** Bug 277223 has been marked as a duplicate of this bug. ***
Comment 11 Giuseppe Vinci 2011-09-23 09:07:28 UTC
On 2009-09-29 23:07:21 John Layt wrote:

>>There are two possible solutions (...)
The second is to try use the printer specific PPD option ...<<

Does this mean settings through CUPS?
I tried that, but it seems, to have no effect on okular
Comment 12 Ezio Vergine 2012-04-13 21:00:02 UTC
same issue here. kubuntu 11.10 kde 4.8.2
Comment 13 Albert Astals Cid 2012-07-20 22:39:02 UTC

*** This bug has been marked as a duplicate of bug 252596 ***
Comment 14 Michael D 2013-02-14 12:19:47 UTC
I have the same problem trying to print from Okular 0.16 (KDE 4.10). Greyscale settings are not observed. I had to print from Adobe Acrobat to get it to work.
Comment 15 Gita Benadi 2014-04-25 09:52:31 UTC
This issue is present for me in KDE 4.8.4 (Debian Wheezy). Despite selecting greyscale printing in Okular's options, I get a color printout. Other programs like LibreOffice print in greyscale just fine, so it's definitely not a problem with the printer driver.
Bug 252596 only talks of printing to pdf, but for me the problem is (also) present when printing on paper. if both issues have the same cause, maybe bug 252596 could be modified to make it clear that the issue exists both for printing to pdf and printing on paper?
Comment 16 Albert Astals Cid 2014-04-26 14:21:40 UTC
No, it can't be modified to say that because  bug 252596 is about printing to pdf.

If you can't print on grayscale to a printer, open a different bug. But first upgrade to an okular version that is not ancient
Comment 17 Gita Benadi 2014-04-26 14:47:43 UTC
(In reply to comment #16)
> No, it can't be modified to say that because  bug 252596 is about printing
> to pdf.
> 
> If you can't print on grayscale to a printer, open a different bug. But
> first upgrade to an okular version that is not ancient

In that case I will simply stop reporting bugs. Debian Wheezy with the "ancient" KDE 4.8 on my work computer is giving me far fewer problems than SolydK (Debian testing) with KDE 4.12 on my other (private) computer. So I really don't want to upgrade the work computer. I can't test if the problem exists in KDE 4.12 because I don't have a printer at home.
Comment 18 Albert Astals Cid 2014-04-26 14:52:10 UTC
Maybe you haven't realized, but it is impossible to fix bugs in a 4.8 release, i can only fix them in 4.13.1 (next release), so whatever bug you have in 4.8, i don't care, i only care if you have it in 4.13.0
Comment 19 Gita Benadi 2014-04-26 15:05:35 UTC
Yes, I have realized that. I don't expect anyone to fix the bug in the version of Okular that I  currently use, but I would like to make sure it is fixed in a version that I and others will use in future. I know that Debian is quite extreme in how many versions behind the bleeding edge it is, but I have read many bug reports by people who were at least one or two versions of KDE behind the most recent one. Unless you use a bleeding edge distro like Arch or compile KDE yourself, you're bound to be a bit behind. If the developers ignore all bug reports by people who don't use the newest version, there will be very few users left to report bugs. That can't be good for the quality of the software, can it?
Comment 20 Albert Astals Cid 2014-04-26 15:14:54 UTC
Thing is, this works for me in 4.13, but maybe there's a bug still somewhere that makes it not work for you, we will never know because you're using and old version, so I don't know if there's a bug or not.

What do you suggest me to do to improve the quality of the software?
Comment 21 Gita Benadi 2014-04-26 15:26:24 UTC
(In reply to comment #20)
> Thing is, this works for me in 4.13
Thanks for the info, so I'm hopeful that it's an old problem that doesn't exist in newer versions.

> but maybe there's a bug still somewhere that makes it not work for you, we will never know
> because you're using and old version, so I don't know if there's a bug or not.
> What do you suggest me to do to improve the quality of the software?
I see your point, I was just put off because you sounded a bit harsh.
If I can find the time, I will try printing in greyscale from Okular using a Live version of Kubuntu 14.04 or maybe install Kubuntu on an extra partition and try it there.