Extract Images From PDF File

Extract Images From PDF File

pdfimages is a PDF image extractor utility/tool under Linux operating system. It can extract images from PDF file and save them under either Portable Pixmap(PPM), Portable Bitmap(PBM) or JPEG/JPG files. This utility should be installed by default in Ubuntu Hardy, at least it is the case in my installation. If not, you can run the following command to install the utility tools:
[email protected]$ sudo apt-get install poppler-utils
To extract images is simple, just fire the command:
[email protected]$ pdfimages [pdffile] [directory]
The second parameter is the directory that the extracted images will be saved. So the example would be
[email protected]$ pdfimages example.pdf /tmp
This command will save the images under ppm format by default. To save images in JPEG/JPG format, use the -j option:
[email protected]$ pdfimages -j example.pdf /tmp

Leave a Reply

Your email address will not be published. Required fields are marked *

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!