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.

26 lines
727 B

1 month ago
  1. @echo off
  2. rem Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible).
  3. rem The default PDF compatibility level may change in the future:
  4. rem use ps2pdf12 or ps2pdf13 if you want a specific level.
  5. set LIBDIR=%~dp0
  6. rem The current default compatibility level is PDF 1.4.
  7. echo -dCompatibilityLevel#1.4 >"%TEMP%\_.at"
  8. rem So disable higher level features to prevent warnings
  9. echo -dWriteXRefStm#false >>"%TEMP%\_.at"
  10. echo -dWriteObjStms#false >>"%TEMP%\_.at"
  11. goto bot
  12. rem Pass arguments through a file to avoid overflowing the command line.
  13. :top
  14. echo %1 >> "%TEMP%\_.at"
  15. shift
  16. :bot
  17. rem Search for leading '-'
  18. echo %1 | findstr /b /C:- >nul 2>&1
  19. if ERRORLEVEL 1 goto proc
  20. goto top
  21. :proc
  22. call "%LIBDIR%ps2pdfxx.bat" %1 %2