Skip to content

Instantly share code, notes, and snippets.

@zhreshold
Forked from andyrbell/scanner.sh
Created November 15, 2018 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhreshold/b6292d21dde3f8ec5a4e518275a0bc59 to your computer and use it in GitHub Desktop.
Save zhreshold/b6292d21dde3f8ec5a4e518275a0bc59 to your computer and use it in GitHub Desktop.
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment