force grayscale

Goffioul Michael goffioul at imec.be
Mon Oct 9 10:37:00 CEST 2006


> On 3 October 2006 10:51, Toni Casueps wrote:
> > The Linux driver for my printer does not allow choosing 
> between color 
> > or grayscale, so I can only choose if the program options 
> allow it. I 
> > want to make a filter in kdeprint so that every program that prints 
> > through it can print in grayscale, I found the ghostscript command 
> > that reads a color PS file and outputs a grayscale PS file 
> but I don't 
> > know how to insert it into my kdeprint options. Can you help me?
> 
> Click on the "Properties" button when your printer is 
> selected in kprinter. 
> 
> In the dialog that pops up, go to the "Filters" tab (the last 
> -- might be hidden by too many tabs in the dialog going out of page). 
> 
> In this tab, click on the "Add filter" button (the one with a 
> funnel on it). 
> The rest should be mildly complicated, but rather self 
> explaining. It allows you to hook the conversion command in 
> the filter.

Printing in grayscale could also be done at generation time by setting
up the internal Qprinter object properly, but this option is not
available
in the GUI. Actually, it's available only for non-real printers (like
when
printing to a PS file). I've been thinking about a good way to provide
this option for all printers (because it is technically possible); for
me,
the best location would be on the main print dialog, along with the
number
of copies and the like. However, as a printer driver can also have such
an
option, I was afraid to confuse the user, with 2 similar-but-unlinked
options.
In the end, I never implemented it...

Michael.


More information about the kde-print mailing list