#!/bin/sh
PDF="$1"
echo "$PDF"
DIR=`echo "$PDF" | sed s/\.pdf//`
echo "$DIR"
mkdir "$DIR"
convert -quality 100 -density 300 $1 "$DIR/"%02d.jpg