Skip to main content

PDF parser and analyzer

Project description

core-pdfminer.six

Continuous integration

We fathom PDF

Core-pdfminer.six is a performance-focused fork of pdfminer.six. It extracts information from PDF documents, with a focus on text data, while retaining the familiar pdfminer.six API design under the core_pdfminer_six namespace.

It is modular, so individual components can be replaced. You can implement your own interpreter or rendering device for uses beyond text analysis.

Check out the full documentation on Read the Docs.

Features

  • Written entirely in Python.
  • Parse, analyze, and convert PDF documents.
  • Extract content as text, images, html or hOCR.
  • Support for PDF-1.7 specification (well, almost).
  • Support for CJK languages and vertical writing.
  • Support for various font types (Type1, TrueType, Type3, and CID) support.
  • Support for extracting embedded images (JPG, PNG, TIFF, JBIG2, bitmaps).
  • Support for decoding various compressions (ASCIIHexDecode, ASCII85Decode, LZWDecode, FlateDecode, RunLengthDecode, CCITTFaxDecode)
  • Support for RC4 and AES encryption.
  • Support for AcroForm interactive form extraction.
  • Table of contents extraction.
  • Tagged contents extraction.
  • Automatic layout analysis.

How to use

  • Install Python 3.10 or newer.

  • Install core-pdfminer.six.

    pip install core-pdfminer.six
    
  • (Optionally) install extra dependencies for extracting images.

    pip install 'core-pdfminer.six[image]'
    
  • Use the command-line interface to extract text from pdf.

    pdf2txt.py example.pdf
    
  • Or use it with Python.

    from core_pdfminer_six.high_level import extract_text
    
    text = extract_text("example.pdf")
    print(text)
    

Contributing

We welcome contributions! Whether you want to fix a bug, add a feature, or improve documentation, your help is appreciated.

Please note that as a community-maintained project with limited maintainer availability, the best way to get an issue resolved is to submit a pull request yourself.

To get started:

  1. Read CONTRIBUTING.md for setup instructions and coding standards
  2. Check out the open issues to find something to work on

Acknowledgement

This repository includes code from pyHanko ; the original license has been included here.

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

core_pdfminer_six-0.0.0.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

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

core_pdfminer_six-0.0.0-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

File details

Details for the file core_pdfminer_six-0.0.0.tar.gz.

File metadata

  • Download URL: core_pdfminer_six-0.0.0.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for core_pdfminer_six-0.0.0.tar.gz
Algorithm Hash digest
SHA256 53d591239ebe48567312bc65c774d5d090be087371fb9818e2004f11ac0eec23
MD5 f05a0d9505f9c2236a3d0b700944155d
BLAKE2b-256 0e6712ee277d0a6756a18b0e7e2aa509b0e58f2a41d20838893418bae88e4563

See more details on using hashes here.

File details

Details for the file core_pdfminer_six-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: core_pdfminer_six-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for core_pdfminer_six-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b390721c80d395b82806bda7d6aa53ba6a6ad11c57150b8ab713f74094d807a5
MD5 1d42ca66593805acc550ea6f2528aff8
BLAKE2b-256 7c8850111ab0a98fec6b058d8db36c8c14fa356a8327f86db36a10c6edb6a376

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