Created
November 27, 2012 15:27
-
-
Save sasasin/4154801 to your computer and use it in GitHub Desktop.
JPEGを集約して作成したPDFから、JPEG画像を抽出するシェルスクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ls "$@" | while read f; do | |
DIRNAME=$(basename "$f" ".pdf") | |
echo "converting $f to $DIRNAME" | |
rm -rf "$DIRNAME" | |
mkdir "$DIRNAME" | |
pdfimages -j "$f" "$DIRNAME"/"DIRNAME" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment