Skip to main content

Extract high-quality images from PDF files while preserving metadata

Project description

PDF Image Extractor

A tool to extract high-quality images from PDF files while preserving metadata and positioning information.

Features

  • Extracts images in their original quality without recompression
  • Preserves image metadata including DPI and positioning
  • Detects and skips duplicate images
  • Generates detailed JSON metadata file
  • Sorts images by their position on the page

Installation

pip install pdfimageextractor

Usage

pdfextractimages <PDF_FILE> [OUTPUT_FOLDER]

Arguments:

  • PDF_FILE: Path to the PDF file to process
  • OUTPUT_FOLDER: Optional directory to save extracted images (defaults to PDF_FILE_images)

Output

The tool creates:

  • Original quality images extracted from the PDF
  • A image_metadata.json file containing detailed information about each image

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

pdfimageextractor-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

pdfimageextractor-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pdfimageextractor-0.1.1.tar.gz.

File metadata

  • Download URL: pdfimageextractor-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for pdfimageextractor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a8b6c5aeff9e0c1cb8f9d198928b0716f0a5e6a1021ee63c6106a66a51f15f1
MD5 6a23d5216e91225654f46c4718fb3550
BLAKE2b-256 b7e9086a4ace56c338b975ffa1ebab0269a5ea4819c85c3549050c95bb547a24

See more details on using hashes here.

File details

Details for the file pdfimageextractor-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pdfimageextractor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e1489e7950a62f5532c3457edadb618c4cc2962237197063dabfd63de58e50b
MD5 9cff66e2ac5842f6925b4febee36b416
BLAKE2b-256 3382fae1a95de75d0788edeb6656dfcd3eb2099b08df4b80e0260fae1814876e

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