I'm trying to remove grey background from a pdf file, but on windows. The document contains some grey scale fonts that I want to retain.
Running on windows, via Command line: magick convert -density 300 document.pdf -fuzz 45% -fill white +opaque black converted_document.pdf Works, the text is retained including grey-scale font. But running same command from a bat file, the grey-scale font is removed. @echo off cd "C:\Users\Server\Desktop\" magick convert -density 300 document.pdf -fuzz 45% -fill white +opaque black converted_document.pdf pause -- Thelma