Ubuntu – Print to File in Black and White (not in greyscale)

printing

I have these pdf files of c++code and they are colored which would be cool, except that the network printer here is b&w and the printed out codes come in various shades of pale grey which makes them essentially unreadable (specially the comments).

I would like everything (text, codes, commands,…) to be printed in the same (black) color.

i've tried fuddling with the printer's properties, but the closest thing i see is the 'level of grey' tab, and there i have the choice between 'enhanced' and 'normal' (and it doesn't make a difference in my case).
i've tried 'print to file', but i don't see any options there to print to b&w,
I've tried installing the 'generic cups printer', but again no options to print to b&w.

any idea ?

(i'm on 10.10)

Best Answer

Most of the printer have option to print as monochrome (that means strict black and white with no shades). Go to System->Administration->Printing, then, under "Color Model", choose "Greyscale"

The othe option is to convert your pdf to tiff image, its basically what OCR tools do:

gs -sDEVICE=tiffg4 -r300x300 -sOutputFile=output.tif -- input.pdf

for more info type man gs

The third option is to install kword, abiword or openoffice pdf extension and import the pdf , change color and print.

If you need it often, I'd consider installing Windows and acrobat reader into Virtualbox. It's really nice solution for such things.

Related Question