Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.04 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.04 KB

ConvertPdfPages2Images

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).

Installation

  1. Clone this repository:
git clone https://github.com/saplumbaga/ConvertPdfPages2Images.git
  1. Navigate to the project directory:
cd ConvertPdfPages2Images
  1. Install the required dependencies:
pip install -r requirements.txt

Note: This script requires Poppler to be installed on your machine.

Usage

  1. Put all the PDF files you want to convert into the PDF_Files directory.
  2. Run the script:
python app.py

for converting all pages or

python app.py --only_cover

for converting only the first page

  1. The converted PNG images will be saved in the PNG_Outputs directory.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the terms of the MIT license.