JPedal provides several methods to allow easy extraction of images that appear with PDF files.
Extract Images from PDF with the Command-Line or another language
java -jar jpedal.jar --extractImages
"inputFileOrDir" "outputDir" "outputImageFormat"
Extract Images from PDF in Java
writeAllImagesToDir("inputFileOrDirectory", "outputDir" ,
"outpuImageFormat", true, false);
This example uses the JPedal ExtractImages class. ExtractImages can output images in several different image formats including BMP, PNG, JPG and TIFF.