pdf2image.py is a Python script that extracts images from PDF files and stores them in a subfolder named after the PDF file. It uses pdfimages
(from Poppler-utils) and ImageMagick's convert
tool for processing.
- Extracts images from PDF files.
- Stores extracted images in a subfolder named after the PDF file.
- Supports merging images with masks using various composition modes.
- Python 3.x
Pillow
librarypdfimages
from Poppler-utils- ImageMagick
-
Install Python: Make sure you have Python installed on your system. You can download it from python.org.
-
Install Pillow: Install the Pillow library using pip:
pip install Pillow
- git clone (this repo)
- cd (this repo)
- python pdf2image.py path/to/your/pdf/file.pdf