Sven Boekhoff, M.Sc.

Ph.D. student at the Max Planck Institute for Dynamics and Self-Organization, Göttingen
You are here: / Linux Tips / Extract images from PDF-files

Extract images from PDF-files

The following work sequence shows you how to install a script that makes it possible to extract all image files from a PDF file by using the menue of the right mouse button. The images are saved in a new folder that has the name of the PDF file (e.g. "puclication.pdf") plus "_images". In this case the name of the new folder would be "publication.pdf_images".

  1. Install the package "nautilus-script-manager" on your system
  2. Open the folder /home/username/.gnome2/nautilus-scripts
  3. Create a file e.g. with the name "extract PDF"
  4. Click with the right mouse button on the file and change the properties to "executable".

    Image of the dialogue window for the file properties

  5. Open the file with a text editor (e.g. with gedit) and enter the following commands:

    # Extracts image files from PDF files
    # For more information see

    mkdir ./"$1_images"
    pdfimages -j "$1" ./"$1_images"/PDFimage

    gdialog --title "Report" --msgbox "Images were successfully extracted!"

    exit 0

  6. After saving the script is active and can be used by clicking with the right mouse button on a particular PDF file:

    Image of the context menue with the possibility to execute the new script

This website uses the following standards:
Valid XHTML 1.1, Valid CSS!