The following work sequence shows you how to install a script that allows to extract all image files from a PDF file by using the menu 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.

I wrote this guide in 2007 while using Ubuntu Linux 7.04 (Feisty Fawn).
  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 images.sh

  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.
    Figure 1. 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:

    #!/bin/bash
    
    # Extracts image files from PDF files
    # For more information see www.boekhoff.info
    
    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 menu with the possibility to execute the new script.
    Figure 2. Image of the context menu with the possibility to execute the new script.