This is a Bash script that extracts images from PDF files using the pdfimages utility from Poppler. It supports both individual files and directories containing multiple PDFs.
-
pdfimages: This script requires
pdfimages, which is part of the Poppler utilities.- On Linux, you can install it with the following command:
sudo apt-get install poppler-utils
- On Linux, you can install it with the following command:
-
Bash: This script is written for Unix-like environments, so it works on Linux and macOS. For Windows, use WSL or Git Bash.
- Clone or download this repository:
git clone https://github.com/irfan643/pdf-image-extractor.git cd pdf-image-extractor -------------------------------------------------------------------------------------------------------------- RUN THIS SCRIPT chmod +x extract_images.sh bash./extract_images.sh -------------------------------------------------------------------