Parent Directory | Revision Log
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 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |