Skip to main content

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

  1. Install directly from PyPI using pip:

    pip install pdf-to-pics
    

Option 2: Clone the Repository

  1. Clone the repository:

    git clone https://github.com/your-username/pdf-to-pics.git
    cd pdf-to-pics
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
      
    • On macOS/Linux:
      source venv/bin/activate
      
  4. 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 pdf2image library for making PDF-to-image conversion easy.
  • The Python community for providing excellent open-source libraries.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

big_pdf_into_images-0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

big_pdf_into_images-0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for big_pdf_into_images-0.1.tar.gz
Algorithm Hash digest
SHA256 730a9c43075279d36b5452e5f25c10955605df34168d90aef7aa4f03d2476310
MD5 21005703044a670fb083ab5a6a27bdeb
BLAKE2b-256 f51a99007313d1fe7876a5aacf2de6686674a1a1238488477bba469a4cb0eb57

See more details on using hashes here.

File details

Details for the file big_pdf_into_images-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for big_pdf_into_images-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e47889fb9b75d47c6a27c630ed5735dc6f2685b95cb45fa8778ca737b9f62002
MD5 4888ac0e17adcc481781b9f16edd57a1
BLAKE2b-256 df0296d84d5b3de1b63cf960bd9c5586576a5f3e8cc0e8fddfdc924494a2d654

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page