home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 February / INTERNET88.ISO / pc / software / windows / bits / pdf995 / data1.cab / Program_Executable_Files / res / pdfopt.bat < prev    next >
Encoding:
DOS Batch File  |  2001-12-08  |  381 b   |  23 lines

  1. @echo off 
  2. @rem $RCSfile: pdfopt.bat,v $ $Revision: 1.2.2.1 $
  3. @rem Convert PDF to "optimized" form.
  4.  
  5. if "%1"=="" goto usage
  6. if "%2"=="" goto usage
  7. call gssetgs.bat
  8. echo -q -dNODISPLAY -dSAFER >_.at
  9. :cp
  10. if "%3"=="" goto doit
  11. echo %1 >>_.at
  12. shift
  13. goto cp
  14.  
  15. :doit
  16. %GSC% -q @_.at -- pdfopt.ps %1 %2
  17. goto end
  18.  
  19. :usage
  20. echo "Usage: pdfopt input.pdf output.pdf"
  21.  
  22. :end
  23.