Skip to content

Instantly share code, notes, and snippets.

@lionelyoung
Created May 22, 2010 04:00
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 lionelyoung/409752 to your computer and use it in GitHub Desktop.
Save lionelyoung/409752 to your computer and use it in GitHub Desktop.
Convert a PDF file to an EPS, for use with Latex embedding
#!/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