Here is the imagemagick code, basically imagemagic works like this convert.exe [paramaters for openning the file] inputfile [parameters for saving the file] output Since PDFs are opened at 72DPI by default, you need to use open with higher resolution. Suggested command:

convert -density 300 input.pdf -compress group4 output.tif
300 is the DPI. You can use other values if you’d like. If -density is changing the page size, you should use “-resample 300×300” instead of -density 300×300. See here:

Imagemagick uses ghostscript behind the scenes and it might be slow on large PDF files. You can also just use ghostscript to convert PDFs to tiffs. Command:

gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiff24nc -dBATCH -sOutputFile=output.tif input.pdf

convert output.tif -compress group4 finaloutput.tif

-r300 specifies the DPI. You can change it.

Was this article helpful to you?

Walter Lee