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.

19 lines
381 B

1 month ago
  1. @echo off
  2. if %1/==/ goto usage
  3. if %2/==/ goto usage
  4. call "%~dp0gssetgs.bat"
  5. set infile=%~1
  6. set outfile=%~2
  7. rem Now convert the input to EPSF and add the Preview to the EPSF file
  8. %GSC% -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile=%outfile% --permit-file-read=%infile% -- %~dp0ps2epsi.ps %infile%
  9. goto end
  10. :usage
  11. echo "Usage: ps2epsi <infile.ps> <outfile.epi>"
  12. :end