Convert a colored PDF into a white/black
- by polslinux
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?