1@echo off 2@rem $Id: ps2ps.bat,v 1.8 2003/03/20 22:10:30 alexcher Exp $ 3@rem "Distill" PostScript. 4 5if %1/==/ goto usage 6if %2/==/ goto usage 7call gssetgs.bat 8echo -dNOPAUSE -dSAFER -dBATCH >_.at 9:cp 10if %3/==/ goto doit 11echo %1 >>_.at 12shift 13goto cp 14 15:doit 16rem Watcom C deletes = signs, so use # instead. 17%GSC% -q -sDEVICE#pswrite -sOutputFile#%2 @_.at %1 18goto end 19 20:usage 21echo "Usage: ps2ps [options] input.ps output.ps" 22echo " e.g. ps2ps -sPAPERSIZE=a4 input.ps output.ps 23 24:end 25