Created
February 20, 2014 21:32
-
-
Save newsroomdev/9123652 to your computer and use it in GitHub Desktop.
Convert PDFs to PNGs
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
#!/usr/bin/env bash | |
shopt -s nullglob | |
for pdf in *{pdf,PDF} ; do | |
sips -s format png --out "${pdf%%.*}.png" "$pdf" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment