I have pdf files I need to convert another format. The files contain images and text. I need the pictures.

I tried to convert using abiword but the result unfortunately gets only text.

Command I use:

abiword --to=doc file.pdf

I think that the format "odt" will be the best. Unless there's another way to draw the same pictures.

  • Do you want to have those pictures as a file? For example, photo.jpg? Do you have many pictures? If you need them in a word-type of document, you can extract them as jpg and then import them in abiword. If this is what you need, I will give you the answer, after you confirm. Otherwise, can you clarify what exactly you need? – user308164 Jul 15 '16 at 8:12
  • my pdf file has a few pictures and I care only for the pictures, could be png, jpg, or other format. I want only those images, it is important that the picture was not the size of the entire page only was its size. – bradley546994 Jul 15 '16 at 8:21
  • I suggest you change the title of your question to extract images from PDF or something like that – user308164 Jul 15 '16 at 8:54
  • 1
    Possible duplicate of Quickly select entire page in Okular – karel Jul 15 '16 at 9:13

If there are just a few figures to extract from the pdf file, you can use a GUI-based method, only possible if you have a photo editor (it is likely you have GIMP installed). Here it is a detailed process of how to do it (dispense me if you are an expert on this, but it might be good as a reference for others):

  • Open the pdf file, and put one picture in the screen so that it covers most of the screen (for example, if you are using Evince, just press F11 and adjust zoom). (The larger the picture on screen, the better the quality of the extracted file)
  • Press print screen key in keyboard.
  • Select Open with: your favorite photo editor (probably GIMP).
  • Use the rectangle selection tool to select the area of the picture you want to extract. To enable this tool, use the Toolbox panel or press R. Once you have selected the area, copy it using Ctrl+C and paste it as a new image using Shift+Ctrl+V. Then, select Export As from File menu, or press Shift+Ctrl+E. Then you can save the picture in any format you like. Just change the extension or select in the menu at the bottom.

If you have many pictures to extract, or you prefer a command-line method, use the pdfimages tool. To use it, install the poppler-utils package (you might have it already):

sudo apt-get install poppler-utils

Then, open a terminal window, go to the folder where you pdf file is, and run:

pdfimages -j file.pdf photo

This will extract the pictures from file.pdf and save them as photo-001.jpg, photo-002.jpg, etc (in the same folder where the pdf file is).


Open the pdf file with OpenOffice/LibreOffice, delete the text and save the file as odt. odt means 'open document text' file. It is the native format of OpenOffice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.