From: Marc Tardif [intmktg@Gloria.CAM.ORG] Sent: Thursday, January 04, 2001 6:10 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: Can't get ghostscript 6.0 to create postscript file from pdf. On 4 Jan 2001, Mark London wrote: > I'm trying to get ghostscript 6.0 to create a postscript file from pdf. I do > the following: > > $ gs "-dNODISPLAY" "-sOutputFile=abc.xyz" example.pdf "-dBATCH" "-dNOPAUSE" [ snip ] GNU ghostscript comes with a utility called pdf2ps, which is actually a shell script that I have pasted below. If you actually decide to use this script, beware of long lines which might have been split with a newline by either of our mail/news clients. Hope it works on the Alladin version too. #!/bin/sh # $Id: pdf2ps $ # 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` [-dPSBinaryOK] [-dPSLevel1] [-dPSNoProcSet] 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