This script needs the following tools :
- ImageMagick,
convert(Mac/Linux) ormagick(Windows), to convert all.pngpages to black and white and compress them withCCITT Groupe 4compression. - Use bbe or sed (if present) to add interpolation option to all CCITT streams. This makes the pages more pleasing to the eye (less "pixelated").
> ./pdf2bw.sh