/[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

Diff of /trunk/pdf2jpeg.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 118 by dpavlin, Wed Jul 22 11:49:31 2009 UTC revision 123 by dpavlin, Thu Nov 12 18:48:37 2009 UTC
# Line 7  test -z "$1" && echo "Usage: $0 file.pdf Line 7  test -z "$1" && echo "Usage: $0 file.pdf
7  dir=$2  dir=$2
8  test -z "$dir" && dir=/tmp/  test -z "$dir" && dir=/tmp/
9    
10    res=150x150
11    test ! -z "$3" && res=$3
12    
13  gs -sDEVICE=jpeg \  gs -sDEVICE=jpeg \
14          -dNOPAUSE -dBATCH -dSAFER \          -dNOPAUSE -dBATCH -dSAFER \
15          -r600x600 \          -r$res \
16          -sOutputFile=$dir/p%08d.jpg \          -sOutputFile=$dir/p%08d.jpg \
17          $1          $1
18    

Legend:
Removed from v.118  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26