home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 August
/
PCWorld_2000-08_cd.bin
/
Software
/
TemaCD
/
ghostscr
/
gs601w32.exe
/
gs6.01
/
lib
/
pdf2ps
< prev
next >
Wrap
Text File
|
2000-03-09
|
516b
|
22 lines
#!/bin/sh
# $Id: pdf2ps,v 1.1 2000/03/09 08:40:40 lpd Exp $
# Convert PDF to PostScript.
OPTIONS=""
while true
do
case "$1" in
-*) OPTIONS="$OPTIONS $1" ;;
*) break ;;
esac
shift
done
if [ $# -ne 2 ]; then
echo "Usage: `basename $0` [-dASCII85EncodePages=false] [-dLanguageLevel=n] input.pdf output.ps" 1>&2
exit 1
fi
# Doing an initial 'save' helps keep fonts from being flushed between pages.
exec gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=$2 $OPTIONS -c save pop -f $1