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
545 B

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