This project contains a Python script that converts PDF files into PNG images. It uses the pdf2image
library for the conversion.
The script allows you to convert all pages of the PDF files or only the first page (cover page).
- Clone this repository:
git clone https://github.com/saplumbaga/ConvertPdfPages2Images.git
- Navigate to the project directory:
cd ConvertPdfPages2Images
- Install the required dependencies:
pip install -r requirements.txt
Note: This script requires Poppler to be installed on your machine.
- Put all the PDF files you want to convert into the
PDF_Files
directory. - Run the script:
python app.py
for converting all pages or
python app.py --only_cover
for converting only the first page
- The converted PNG images will be saved in the
PNG_Outputs
directory.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the MIT license.