Extract images from a PDF


Using poppler-utils (poppler in brew, poppler-utils in apt):

pdfimages -f <first_page_number> -l <last_page_number> -j input.pdf output_prefix

If this gives separate images that should be overlaid, you can use a different poppler utility:

pdftoppm -jpeg -r 300 -f <first_page_number> -l <last_page_number> ~/Downloads/input.pdf output_prefix

Date: 2025-12-14, Updated: 2026-11-04

Tags: pdf

Share: