Published

Make a PDF looked like a scanned doc using ImageMagick

You can make a PDF looked like a scanned document using ImageMagick. Useful for all the unfortunate orgs that still don’t accept electronic signatures and such.

Make sure you have ImageMagick installed and then run this on the command line:

convert -density 140 input.pdf -rotate "$([ $((RANDOM % 2)) -eq 1 ] && echo -)0.$(($RANDOM % 4 + 5))" -attenuate 0.1 +noise Multiplicative -flatten -attenuate 0.01 +noise Multiplicative -sharpen 0x1.0 -colorspace Gray output.pdf

Based on this Gist but with some tweaks based on my preferences.