Skip to content

Instantly share code, notes, and snippets.

@TakashiUNUMA
Last active December 27, 2015 16:19
Show Gist options
  • Save TakashiUNUMA/7353858 to your computer and use it in GitHub Desktop.
Save TakashiUNUMA/7353858 to your computer and use it in GitHub Desktop.
#!/bin/sh
if test $# -lt 2 ; then
echo "USAGE: $(basename $0) [input pdf] [output eps]"
exit 2
fi
input=$1
output=$2
echo "INPUT: ${input}"
echo "OUTPUT: ${output}"
gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile=${output} ${input}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment