convert color PDF to black and white TIFF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
oct

convert color PDF to black and white TIFF

Post by oct »

Hello there,

I am having difficulty preserving the text when I convert from a color PDF to a black and white TIFF. I also would like to keep the file size at a minimum.

I have tried the following commands:

convert in.pdf -density 300 -monochrome out.pdf > gives 1bpp but text is not preserved
convert in.pdf -density 300 -colorspace gray out.pdf > gives 8pp but text is a bit more readable

I would like to have a TIFF that is 1 bpp. Thanks in advance for your time and help.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert color PDF to black and white TIFF

Post by anthony »

Try using either

Code: Select all

      -threshold 50%
or for a more automatic method

Code: Select all

      +dither  -colors 2  -colorspace Gray -normalize
See Two Color Quantization in IM Examples....
http://www.imagemagick.org/Usage/quantize/#colors_two
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply