1
0

pdf2ps.bat 496 B

123456789101112131415161718192021222324
  1. @echo off
  2. @rem $Id: pdf2ps.bat,v 1.7 2002/02/21 21:49:28 giles Exp $
  3. @rem Convert PDF to PostScript.
  4. if %1/==/ goto usage
  5. if %2/==/ goto usage
  6. call gssetgs.bat
  7. echo -dNOPAUSE -dBATCH -dSAFER -sDEVICE#pswrite >_.at
  8. :cp
  9. if %3/==/ goto doit
  10. echo %1 >>_.at
  11. shift
  12. goto cp
  13. :doit
  14. rem Watcom C deletes = signs, so use # instead.
  15. %GSC% -q -sOutputFile#%2 @_.at %1
  16. if exist _.at erase _.at
  17. goto end
  18. :usage
  19. echo "Usage: pdf2ps [-dASCII85DecodePages=false] [-dLanguageLevel=n] input.pdf output.ps"
  20. :end