Last active
December 17, 2015 14:59
-
-
Save yradunchev/5628002 to your computer and use it in GitHub Desktop.
Convert multi-page pdf to jpeg 1. Save this to file.sh and 'chmod +x file.sh'
2. Run as ./file.sh ./path/to/your.pdf
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 | |
| PDF=$1 | |
| convert ${PDF} pages.png | |
| convert pages-* -append ${PDF}.jpg | |
| rm pages-* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment