Skip to content

Instantly share code, notes, and snippets.

@ardinusawan
Created June 2, 2017 19:51
Show Gist options
  • Save ardinusawan/1d1d496bfa72170422f3ebf38be7328e to your computer and use it in GitHub Desktop.
Save ardinusawan/1d1d496bfa72170422f3ebf38be7328e to your computer and use it in GitHub Desktop.
Converting pdf to png using python
for pdfile in *.pdf ; do
convert -verbose -density 500 "${pdfile}" -quality 100 "${pdfile%.*}".png
# rm "${pdfile}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment