For example, green text on a white background:
convert -density 150 test.pdf lecture2.png
convert lecture2.png -alpha Copy -fuzz 100% -fill White -opaque Gray -background Green -alpha Remove lecture3.png
convert lecture3.png lecture3.pdf
I've shown it as three stages, but you could combine them ...
Search found 3 matches
- 2013-02-02T19:42:47-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 6314
- 2013-02-02T19:20:19-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 6314
Re: Colorizing scanned grayscale PDF
You do not say what resulting image format you want? If you process to pdf, IM will rasterize and then convert that to PDF.
because you want to keep the antialiasing of the text, you should try
convert test.pdf +level-colors red,white result.png (or gif or jpg)
see
http://www.imagemagick.org ...
because you want to keep the antialiasing of the text, you should try
convert test.pdf +level-colors red,white result.png (or gif or jpg)
see
http://www.imagemagick.org ...
- 2013-02-02T19:06:51-07:00
- Forum: Users
- Topic: Grayscale matters
- Replies: 7
- Views: 6314
Grayscale matters
Hi all
I have a variety of scanned PDFs that are black and white like the following
Many thanks from a massive newbie
I have a variety of scanned PDFs that are black and white like the following
Many thanks from a massive newbie