Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
bin
/
Upload File :
New :
File
Dir
//proc/self/root/usr/bin/pdf2dsc
#! /bin/sh # $Id: pdf2dsc 8107 2007-07-05 19:04:29Z till $ # psf2dsc: generates an index of a PDF file. # # Yves Arrouye <arrouye@debian.org>, 1996. # 2000-05-18 lpd <ghost@aladdin.com> added -dSAFER # This definition is changed on install to match the # executable name set in the makefile GS_EXECUTABLE=gs gs="`dirname $0`/$GS_EXECUTABLE" if test ! -x "$gs"; then gs="$gs" fi 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