#!/bin/sh
#
# wrapper around ghostscript, used to avoid confusion.
# simply shuts it up, sets up a default page size, deactivates
# the insecure postscript operators, and lets rip.

if [ $# != 3 ] ; then
    echo "usage: gs-convert {format} {inputfile} {outputfile}" 1>&2
    exit 1
fi

exec gs -q -sDEVICE=$1 -sPAPERSIZE=a4 -dSAFER	\
	-sOutputFile=$3 - $2 < /dev/null
