blob: e47b429c40cfa868ce2c830f7fdccbb4de146339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/sh
# $Id: pdf2dsc,v 1.3 2000/12/29 05:03:49 alexcher Exp $
# psf2dsc: generates an index of a PDF file.
#
# Yves Arrouye <arrouye@debian.org>, 1996.
# 2000-05-18 lpd <ghost@aladdin.com> added -dSAFER
me=`basename $0`
usage() {
>&2 echo usage: $me "pdffile [ dscfile ]"
exit 1
}
if [ $# -gt 2 ]
then
usage
fi
pdffile=$1
dscfile=$2
: ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
exec gs -q -dNODISPLAY -dSAFER -dDELAYSAFER\
-sPDFname="$pdffile" -sDSCname="$dscfile" pdf2dsc.ps -c quit
|