Skip to content

Instantly share code, notes, and snippets.

@MikeiLL
Forked from lisaah/convert_svg_to_pdf.sh
Last active October 30, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeiLL/132acf2f6ccc8463a259188c98b1cb30 to your computer and use it in GitHub Desktop.
Save MikeiLL/132acf2f6ccc8463a259188c98b1cb30 to your computer and use it in GitHub Desktop.
Simple shell script to convert all .svg in directory to .pdf
# Dependency:
# sudo apt-get install librsvg2-bin
# or brew install librsvg
find . -type f -name "*.svg" -exec bash -c 'rsvg-convert -h 800 "$0" > "$0".png' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment