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

Annotation of /trunk/pdf2jpeg.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (hide 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 dpavlin 118 #!/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 dpavlin 123 res=150x150
11     test ! -z "$3" && res=$3
12    
13 dpavlin 118 gs -sDEVICE=jpeg \
14     -dNOPAUSE -dBATCH -dSAFER \
15 dpavlin 123 -r$res \
16 dpavlin 118 -sOutputFile=$dir/p%08d.jpg \
17     $1
18    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26