Skip to main content

Utility for extracting images from PDFs.

# To extract all images from a PDF file and save them as PNGs:
pdfimages -png <path/to/file.pdf> <filename_prefix>

# To extract images from pages 3 to 5:
pdfimages -f <3> -l <5> <path/to/file.pdf> <filename_prefix>

# To extract images from a PDF file and include the page number in the output filenames:
pdfimages -p <path/to/file.pdf> <filename_prefix>

# To list information about all the images in a PDF file:
pdfimages -list <path/to/file.pdf>