Skip to main content

A lightweight GUI tool to visualize and extract images from PDF files

Project description

PDF Image Extractor

A lightweight Python application with a GUI to visualize and extract images from PDF files. The app displays PDF pages with red bounding boxes around detected images, allowing you to click on any box to save that image.

Features

  • 📄 Visual PDF Navigation: Browse through PDF pages with Previous/Next buttons or jump to specific pages
  • 🎯 Popup Image Preview: Hover over image descriptions to see a popup with the actual extracted image
  • 🖱️ Click to Save: Click on image descriptions in the list to extract and save
  • 📑 Smart Navigation:
    • Outline Tab: PDF table of contents with hierarchical navigation
    • Thumbnails Tab: Visual page browser with clickable thumbnails
  • 🔍 Zoom Controls: Zoom in/out with +/- buttons or fit page to window
  • 📊 Image Info Panel: Interactive list showing all images on the current page
  • 💾 Batch Extract: Extract all images from the current page at once
  • 🚀 Pure Python: No external system dependencies required

Installation

From Source

Clone or download this repository, then install:

pip install -e .

From PyPI

pip install pdf-image-extractor

That's it! No system dependencies needed - PyMuPDF includes everything required.

Usage

After installation, run from anywhere using the command:

pdf-image-extractor

Or open a PDF directly from the command line:

pdf-image-extractor /path/to/document.pdf

Or run directly from the source directory:

python -m pdf_image_extractor.app [optional-pdf-file]

Quick Start Guide

  1. Open a PDF: Click "Open PDF" button or provide a file path as argument
  2. Navigate:
    • Use Previous/Next (◀ ▶) buttons or type a page number
    • Click on entries in the Outline tab for TOC navigation
    • Switch to Thumbnails tab for visual page browsing
  3. View Images: Check the right panel for a list of all images on the current page
  4. Preview: Hover your mouse over any image in the list to see a popup preview
  5. Extract Image: Click on an image in the list to save it
  6. Zoom: Use +/- buttons to zoom, or click "Fit" to fit page to window (auto-fits on open)
  7. Batch Extract: Click "Extract All" to save all images from the current page

Development

Install in Development Mode

pip install -e ".[dev]"

License

MIT License - Feel free to use and modify as needed.

Project details


Download files

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

Source Distribution

extract_pdf_images-1.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

extract_pdf_images-1.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file extract_pdf_images-1.0.1.tar.gz.

File metadata

  • Download URL: extract_pdf_images-1.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for extract_pdf_images-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cecad13f2ec722c4fe5807c8c77e3c2192280055d4328d6c9b92b96c70640c0b
MD5 10f327cdb72c20ddaeca7be235e9fb2d
BLAKE2b-256 864c707d2764e9814fa71019ae59536e5f07d6757dea5f5133bbba3618954789

See more details on using hashes here.

File details

Details for the file extract_pdf_images-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for extract_pdf_images-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0281fb299eaad77054fa76356cc5c3917a1e9083902b22bcd8aac5c270ef261a
MD5 cc34823926e625916ac6797cb5a63eec
BLAKE2b-256 8c6b35530d0a95d1f8c1292d248295f16dd41f142c8af1708613efc59202648c

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