🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

big-pdf-into-images

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-pdf-into-images

A tool to convert PDF files into images, page by page.

0.1
PyPI
Maintainers
1

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

Keywords

pdf

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts