2
# $Id: ps2pdfwr,v 1.9 2002/02/21 21:49:28 giles Exp $
3
# Convert PostScript to PDF without specifying CompatibilityLevel.
9
-?*) OPTIONS="$OPTIONS $1" ;;
15
if [ $# -lt 1 -o $# -gt 2 ]; then
16
echo "Usage: `basename $0` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2
26
*.eps) base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;;
27
*.ps) base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;;
28
*) base=`basename "${infile}"`; outfile="${base}.pdf" ;;
34
# We have to include the options twice because -I only takes effect if it
35
# appears before other options.
36
exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"