It's a short Python script to parse PDF files & export the images found inside in their original formats.
- Clone the repo
- Create the virtual environment -
python3 -m venv env - Start the virtual environment, ie:
. env/Scripts/activate(or whatever your system needs to do so) pip install -r ./requirements.txt- End the virtual environment, ie:
deactivate
- Place a PDF file in the same directory as the script
-
- Linux: Run
_pdf-image.py - Windows: As above or run
_get-pdf-image.bat
- Linux: Run
- Check in the same directory to find the image/s. Image file names are based upon the original file name with page number, image number & file type appended
2022-06-23
- Adds command line arguments for
--singleor--multiple(default) images - Adds extra .bat file for running single image task