for f in *.pdf; do
  convert -density 100 -units PixelsPerInch \
         -colorspace Gray -threshold 95% \
         -background white -trim \
         "$f" "${f%.pdf}.png";
done
