My personal blog around GNU/Linux


Today i learnt how to extract all the images from the PDF(Portable Document Format) file using single command via Terminal.
I would love to share it with you. Please follow the below steps to do so.

Step 1: Open the terminal. In Ubuntu ( Applications -> Accessories -> Terminal ).

Step 2: Browse to the pdf file using the ‘cd’ command.
Example:
spv@Pras_linux:~$ cd Downloads/
spv@Pras_linux:~$ ls
my_file.pdf

Step 3: Now execute the command as below.

spv@Pras_linux:~$ pdfimages -j my_file.pdf  pic

This will extract all images from my_file.pdf and save them in JPEG format (option -j) to pic-000.jpg, pic-001.jpg, pic-002.jpg, etc.

Step 4: You can refer to Man page of pdfimages by entering ” man pdfimages

Thanks to Mr. Tha. Suresh (ILUGC) who taught us this command.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: