Extracting images from PDFs

Fremantle

· PDFs · images · archiving ·

For my own reference, to extract images from a PDF into a directory called images (which must already exist), maintaining sequence and page numbering:

$ pdfimages -all -p example.pdf images/

The trailing slash is required, otherwise the resulting images will be in the current directory with images as a prefix.

Note that extracting to the current directory, with a single dot . (instead of images) can be confusing, because the images will be written there — but they'll start with a dot and so will be hidden (e.g. .-001-000.jpg, .-001-001.jpg, etc.).

← PreviousNext →
Reply, comment, contact, follow, etc.

My main RSS news feed: https://samwilson.id.au/news.rss
(or Wikimedia.rss, Fremantle.rss, OpenStreetMap.rss, etc. for topic feeds).

Email me at sam samwilson.id.au
Or leave a comment below…

No comments yet