/[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 118 - (hide annotations)
Wed Jul 22 11:49:31 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-sh
File size: 298 byte(s)
quickly convert pdf to jpeg using ghostscript

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     gs -sDEVICE=jpeg \
11     -dNOPAUSE -dBATCH -dSAFER \
12     -r600x600 \
13     -sOutputFile=$dir/p%08d.jpg \
14     $1
15    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26