Use the extractimage action to extract all images from the specified page number in a PDF document, as shown in the following code snippet:
action = "extractimage"
source = "../myBook.pdf"
pages = "1-200"
destination = "..\mybookimages"
imageprefix = "mybook">
The images are extracted and saved in the directory that you specify in the destination attribute. You can specify a prefix for the images (imageprefix) being extracted, otherwise the system prefixes the
PDFBox supports this