Skip to content

Instantly share code, notes, and snippets.

@chirag64
Forked from andyrbell/scanner.sh
Created April 27, 2021 16:08
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 chirag64/039b77260d2b0df82bf482321cff72c9 to your computer and use it in GitHub Desktop.
Save chirag64/039b77260d2b0df82bf482321cff72c9 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