Page 1 of 1

Re: Converting scanned text pdf to tif, background > transparen

Posted: 2008-11-26T15:10:15-07:00
by fmw42
chrispy wrote:How can I use the convert command to convert a pdf of scanned text page with relatively white background to tif, with the background removed or transparent?
Is there a set of ImageMagick commands that will allow me to convert a multi-page pdf to a group of tiff files?

convert image.pdf -fuzz XX% -transparent white image.tif

the -fuzz finds values near white to make transparent

see

http://www.imagemagick.org/script/comma ... s.php#fuzz
http://www.imagemagick.org/script/comma ... ransparent

convert image.pdf image.tiff

will make a number of images, one for each page of pdf, e.g. image-0.tif, image-1.tif

or see

http://www.imagemagick.org/script/comma ... php#adjoin

Re: Converting scanned text pdf to tif, background > transparen

Posted: 2008-11-26T21:46:03-07:00
by anthony
see techniques in IM examples, Text to Image, Postscript.

Note just replaving pure (or near pure) white with transparency is NOT a great solution as you get a halo of colors and well as loss any anti-aliased edging.