Created
May 22, 2010 04:00
-
-
Save lionelyoung/409752 to your computer and use it in GitHub Desktop.
Convert a PDF file to an EPS, for use with Latex embedding
This file contains 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 | |
while test $# -gt 0 ; | |
do | |
case $1 in | |
*.pdf) | |
/usr/bin/gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite -sOutputFile=${1%.pdf}.eps $1 | |
;; | |
*) | |
echo "File $1 not recognised, skipping" | |
;; | |
esac | |
shift | |
done | |
# end of script. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment