File: pdfopt.bat

package info (click to toggle)
gs 6.53-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 27,752 kB
  • ctags: 36,025
  • sloc: ansic: 255,138; sh: 6,990; cpp: 4,576; tcl: 1,814; asm: 968; lisp: 405; python: 405; makefile: 244; perl: 207; awk: 66
file content (22 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off 
@rem $RCSfile: pdfopt.bat,v $ $Revision: 1.2.2.1 $
@rem Convert PDF to "optimized" form.

if "%1"=="" goto usage
if "%2"=="" goto usage
call gssetgs.bat
echo -q -dNODISPLAY -dSAFER >_.at
:cp
if "%3"=="" goto doit
echo %1 >>_.at
shift
goto cp

:doit
%GSC% -q @_.at -- pdfopt.ps %1 %2
goto end

:usage
echo "Usage: pdfopt input.pdf output.pdf"

:end