A command line tool for extracting image files from a PDF file.
PDFImgEx PDF_File_Name [Output_Path] [-o(verwrite)] [-t(itle) Title_Prefix]
PDF_File_Name: Name of the PDF file to parse.
Output_Path: Write images to this path. Optional, if not present then write to same directory as source file.
-overwrite: Overwrite files in the output directory if they have the same name. Optional, by default this is disabled and the image is skipped.
-title: Add an optional prefix to the output image files. Images files are normally named _Page_TotalImageCount.Format where Page is the page in the document, TotalImageCount is a squential count of images in the document and Format is the file format extension.
Requires the PDFImageExtract.Core library, which in turn requires iTextSharp 5.5. Dependencies
Images are written according to the format used in the pdf. The resulting files often require conversion to be used in other programs. Use another tool, like imagemagick, to do this: File Conversion
For example, if .jp2 (JPEG 2000) files are created, use the following imagemagick command to convert all files in the output directory to PNG files.
magick mogrify -format png *.jp2