/[flash]/pdf2pic.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 /pdf2pic.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations)
Fri Feb 22 22:02:15 2008 UTC (16 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 489 byte(s)
render pdfs to various resultion images
1
2 pdf=Vidi-141.pdf
3 limit="-f 1 -l 5"
4
5 #test -d ppm && rm -Rf ppm
6 mkdir ppm
7
8 function render_pdf() {
9 dpi=$1
10 echo "render pdf $pdf to $dpi dpi ppms"
11 test -d ppm/$dpi || mkdir ppm/$dpi
12 # pdftoppm $limit -r $dpi -aa yes -aaVector yes $pdf ppm/$dpi/p
13 du -kcs ppm/$dpi
14
15 echo "convert to jpg"
16 test -d jpg/$dpi || mkdir jpg/$dpi
17 ls ppm/$dpi/ | sed 's/.ppm//' | xargs -i convert ppm/$dpi/{}.ppm jpg/$dpi/{}.jpg
18 du -kcs jpg/$dpi
19 }
20
21 render_pdf 10
22 render_pdf 75
23 render_pdf 150
24 render_pdf 300
25

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26