@echo off 
@rem Convert PDF to PostScript.

if "%1"=="" goto usage
if "%2"=="" goto usage
if not "%3"=="" goto usage

gs -q -sPSFile=%2 -dNOPAUSE %1 -c quit
goto end

:usage
echo "Usage: pdf2ps input.pdf output.ps"

:end
