Created
November 9, 2016 20:37
-
-
Save jtilly/c86983479dbf3220f0bcb735449d4759 to your computer and use it in GitHub Desktop.
Convert a searchable PDF to an image only PDF using imagemagick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
convert -density 300 $1 /tmp/page_%04d.jpg | |
convert /tmp/page_*.jpg $2 | |
rm /tmp/page_*.jpg | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment