Fremantle
· PDFs · images · archiving ·
For my own reference, to extract images from a PDF into a directory called images
, 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.).
Comments on this post
No comments yet