SOURCEDIR=/home/cowboy

find $SOURCEDIR -type f -iname '*.pdf' | while read SourceFile; do
PNGFile="${SourceFile%.pdf}.png"
if [[ ! -e "$PNGFile" ]]; then
convert "$SourceFile"...