#!/bin/bash

# Extracts image files from PDF files
# For more information see www.boekhoff.info

if [ $1 ]; then

if [ ! -d ./$1_images ]; then
mkdir -p ./"$1_images"
fi

pdfimages -j "$1" ./"$1_images"/PDFimage

gdialog --title "Report" --msgbox "Images were successfully extracted!"

exit 0
fi
