/[scripts]/trunk/pdf2jpeg.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/pdf2jpeg.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations)
Thu Nov 12 18:48:37 2009 UTC (14 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 333 byte(s)
http://use.perl.org/~BooK/journal/39887
1 #!/bin/sh -x
2
3 # http://www.linuxjournal.com/content/tech-tip-using-ghostscript-convert-and-combine-files
4
5 test -z "$1" && echo "Usage: $0 file.pdf [/tmp/]" && exit
6
7 dir=$2
8 test -z "$dir" && dir=/tmp/
9
10 res=150x150
11 test ! -z "$3" && res=$3
12
13 gs -sDEVICE=jpeg \
14 -dNOPAUSE -dBATCH -dSAFER \
15 -r$res \
16 -sOutputFile=$dir/p%08d.jpg \
17 $1
18

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26