File: pdfopt

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 (20 lines) | stat: -rwxr-xr-x 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $RCSfile: pdfopt,v $ $Revision: 1.2.2.1 $
# Convert PDF to "optimized" form.

OPTIONS=""
while true
do
	case "$1" in
	-*) OPTIONS="$OPTIONS $1" ;;
	*)  break ;;
	esac
	shift
done

if [ $# -ne 2 ]; then
	echo "Usage: `basename $0` input.pdf output.pdf" 1>&2
	exit 1
fi

exec gs -q -dNODISPLAY -dSAFER $OPTIONS -- pdfopt.ps $1 $2