Skip to content

saplumbaga/ConvertPdfPages2Images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert PDF files into images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages