Pdf2png
Aus Programmers Guide
(Unterschied zwischen Versionen)
Roy (Diskussion | Beiträge) |
Roy (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
- | == pdf2png mit Imagemagick | + | ==pdf2png mit Imagemagick== |
- | + | ||
<source lang="bash"> | <source lang="bash"> | ||
#!/bin/bash | #!/bin/bash | ||
- | |||
find /var/www/ -name "*.pdf" | while read FILENAME; | find /var/www/ -name "*.pdf" | while read FILENAME; | ||
do | do | ||
- | + | md5name=$(echo -n $FILENAME|md5sum|cut -d " " -f1) | |
- | + | convert "$FILENAME[0]" "$md5name.png" | |
- | md5name=$(echo -n $FILENAME|md5sum|cut -d " " -f1) | + | |
- | + | ||
- | convert "$FILENAME[0]" "$md5name.png" | + | |
- | + | ||
done | done | ||
- | |||
</source> | </source> | ||
- | + | [[Category:Bash]] [[Category:Ubuntu]] | |
- | + | ||
- | [[Category:Bash]][[Category:Ubuntu]] | + |
Aktuelle Version vom 18:15, 6. Sep. 2010
pdf2png mit Imagemagick
#!/bin/bash find /var/www/ -name "*.pdf" | while read FILENAME; do md5name=$(echo -n $FILENAME|md5sum|cut -d " " -f1) convert "$FILENAME[0]" "$md5name.png" done