Batch PDF Image Extractor

Extract images from PDF files with this free Linux Batch PDF Image Extractor script. Works with single and multiple PDF files. Easy to use Linux script. Download batch-pdf-image-extractor.sh from my Github repo, place the bash script file in a directory that contains one or more PDF to process then run the script to extract images from the PDF docs.

Instructions

  • Download batch-pdf-image-extractor.sh from GitHub.
  • Copy batch-pdf-image-extractor.sh to a directory that contains PDF files
  • Make batch-pdf-image-extractor.sh executable. Either right-click to edit file properties or run chmod +x batch-pdf-image-extractor.sh
  • Run the script with bash batch-pdf-image-extractor.sh or just left-click the file batch-pdf-image-extractor.sh

What Will Happen

  • The PDF image extractor script will look for PDF files in the active directory
  • The files will then be processed to extract any images.
  • Any images in the PDF files will be extracted
  • Extracted images will be converted to PNG format
  • Images will be moved into an ‘images’ directory
  • PDF files will be moved into a ‘pdf’ directory

Configs

The script has three optional configuration variables. These control image conversion and whether or not processed PDF files and their images are moved or copied into sub directories. The default settings suit most workflows i.e process PDF(s), convert images to PNG, then move files to the sub directories ‘images’ and ‘pdfs’.

The configs are at the top of the script file:

Requirements

Batch PDF Image Extractor requires pdfimages to be installed. The script will check for the pdfimages program and prompt for its installation if not found.

Known Issues

Any issues with pdfimages will also be evident in Batch PDF Image Extractor.

Images fail to extract from some PDF files. I don’t know why this is. Will look into it when I get time. My experience is that if an image fails to extract from a PDF file then no images will extract from that same PDF file. I use GIMP to convert pages of these PDFs to images then extract the images manually.

Script Author

Batch PDF Image Extractor is written, copyrighted and maintained by Lee Hodson of JournalXtra, VR51 and WP Service Masters fame.

Donations

Development takes time and skill. I offer these software for free and donations for my time are appreciations.

Win the battle. Social Warfare Dynamik Website Builder Author Pro

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

Free to your inbox

Join our mailing list to receive the latest news and updates from JournalXtra.

You have Successfully Subscribed!