home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 September / PCWorld_2001-09_cd.bin / Software / Vyzkuste / rychlokurz / gs700w32.exe / gs7.00 / lib / pdf2ps.bat < prev    next >
DOS Batch File  |  2001-02-03  |  529b  |  25 lines

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