Convert a colored PDF into a white/black

Posted by polslinux on Super User See other posts from Super User or by polslinux
Published on 2012-10-17T07:54:33Z Indexed on 2012/10/17 11:06 UTC
Read the original article Hit count: 353

Filed under:
|

On Debian Sid, I have a PDF with a blue background and yellow font. I've searched a lot on Super User but i haven't found anything useful for me.

I have tried to convert the PDF into a grayscale one with:

gs -o grayscale.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -sProcessColorModel=DeviceGray -dCompatibilityLevel=1.4 colored.pdf

The problem is that I obtain a PDF whit white fonts and dark grey background so I cannot print it.

After that I tried:

convert -density 96x96 gs2.pdf -density 96x96 -negate -compress zip inv.pdf

I got a PDF with black fonts (and this is okay) and grey background (and this is not okay).

What can I do to obtain a PDF with white background and black fonts?

© Super User or respective owner

Related posts about linux

Related posts about pdf