Skip to content

Instantly share code, notes, and snippets.

@gtpedrosa
Forked from andyrbell/scanner.sh
Created April 4, 2020 02:40
Show Gist options
  • Save gtpedrosa/9b7e07c4a5a5a6fac43eef0efbe7785a to your computer and use it in GitHub Desktop.
Save gtpedrosa/9b7e07c4a5a5a6fac43eef0efbe7785a 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