You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
494 B

1 month ago
  1. @echo off
  2. @rem Convert PDF to PostScript.
  3. if %1/==/ goto usage
  4. if %2/==/ goto usage
  5. call "%~dp0gssetgs.bat"
  6. echo -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#ps2write >"%TEMP%\_.at"
  7. :cp
  8. if %3/==/ goto doit
  9. echo %1 >>"%TEMP%\_.at"
  10. shift
  11. goto cp
  12. :doit
  13. rem Watcom C deletes = signs, so use # instead.
  14. %GSC% -q -sOutputFile#%2 @"%TEMP%\_.at" %1
  15. if exist "%TEMP%\_.at" erase "%TEMP%\_.at"
  16. goto end
  17. :usage
  18. echo "Usage: pdf2ps [-dASCII85DecodePages=false] [-dLanguageLevel=n] input.pdf output.ps"
  19. :end