星火微课系统客户端
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.

12345678910111213141516171819202122232425
  1. @echo off
  2. @rem $Id: ps2ps.bat 6417 2005-12-29 01:11:43Z alexcher $
  3. @rem "Distill" PostScript.
  4. if %1/==/ goto usage
  5. if %2/==/ goto usage
  6. call gssetgs.bat
  7. echo -dNOPAUSE -dSAFER -dBATCH >_.at
  8. :cp
  9. if %3/==/ goto doit
  10. echo %1 >>_.at
  11. shift
  12. goto cp
  13. :doit
  14. rem Watcom C deletes = signs, so use # instead.
  15. %GSC% -q -sDEVICE#pswrite -sOutputFile#%2 @_.at %1
  16. if exist _.at erase _.at
  17. goto end
  18. :usage
  19. echo "Usage: ps2ps [options] input.ps output.ps"
  20. echo " e.g. ps2ps -sPAPERSIZE=a4 input.ps output.ps
  21. :end