Extracting raw images from PDF
Use Poppler to extract the original high-resolution images from the PDF. This generally yields better quality images than screenshoting Note: only raster images can be exported with Poppler tools.
List all PDF images:
pdfimages -list in.pdfExtract PDF images from all pages, dumping all images in mydoc.pdf to the same directory.
Filenames start with out-.
There might be a lot of images.
pdfimages -all in.pdf outExtract PDF images from specific pages: example is for page 3 only:
pdfimages -all -f 3 -l 3 in.pdf out-f- first page to extract
-l- last page to extract
Install Poppler:
- Linux:
apt install poppler-utils - macOS / Linux (Homebrew):
brew install poppler - Windows: use WSL
poppler
Related: extracting a page(s) from PDF