A tool to convert PDF files into images, page by page.
Project description
pdf-to-pics
A Python project that converts PDF files into images (one image per page). This project utilizes the pdf2image library to extract pages from PDF files and save them as images for easier viewing and manipulation.
Features
- Convert PDF pages into images.
- Save each page as an image file (JPG, PNG, etc.).
- Customizable output resolution and image format.
Installation
Prerequisites
- Python 3.7 or above.
- pip (Python package manager).
Steps to Install
You can install the project in two ways:
Option 1: Install via pip
-
Install directly from PyPI using pip:
pip install pdf-to-pics
Option 2: Clone the Repository
-
Clone the repository:
git clone https://github.com/your-username/pdf-to-pics.git cd pdf-to-pics
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install required dependencies:
pip install -r requirements.txt
Usage
Once installed, you can use the command big-pdf-into-images to convert a PDF file into images.
Options
- By default, the images are saved as PNG files with a resolution of 300 DPI. You can adjust these settings in the script.
Dependencies
This project uses the following libraries:
pdf2image: Convert PDF pages to images.tqdm: Display a progress bar during conversion.click: Command-line interface handling.colorama: Console text formatting.pyfiglet: Generate ASCII art for visual flair.Pillow: Image manipulation library for saving and processing images.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your improvements or bug fixes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- The
pdf2imagelibrary for making PDF-to-image conversion easy. - The Python community for providing excellent open-source libraries.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file big_pdf_into_images-0.1.tar.gz.
File metadata
- Download URL: big_pdf_into_images-0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
730a9c43075279d36b5452e5f25c10955605df34168d90aef7aa4f03d2476310
|
|
| MD5 |
21005703044a670fb083ab5a6a27bdeb
|
|
| BLAKE2b-256 |
f51a99007313d1fe7876a5aacf2de6686674a1a1238488477bba469a4cb0eb57
|
File details
Details for the file big_pdf_into_images-0.1-py3-none-any.whl.
File metadata
- Download URL: big_pdf_into_images-0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e47889fb9b75d47c6a27c630ed5735dc6f2685b95cb45fa8778ca737b9f62002
|
|
| MD5 |
4888ac0e17adcc481781b9f16edd57a1
|
|
| BLAKE2b-256 |
df0296d84d5b3de1b63cf960bd9c5586576a5f3e8cc0e8fddfdc924494a2d654
|