core-pdfminer.six
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:
- Read CONTRIBUTING.md for setup instructions and coding standards
- 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.
Metadata
Release files for core-pdfminer.six 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| core_pdfminer_six-0.0.0.tar.gz | 8.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| core_pdfminer_six-0.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 MB
Release files / core_pdfminer_six-0.0.0.tar.gz
| Download URL | core_pdfminer_six-0.0.0.tar.gz |
|---|---|
| Size | 8.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53d591239ebe48567312bc65c774d5d090be087371fb9818e2004f11ac0eec23
|
|
BLAKE2b-256 checksum How to use checksums |
0e6712ee277d0a6756a18b0e7e2aa509b0e58f2a41d20838893418bae88e4563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / core_pdfminer_six-0.0.0-py3-none-any.whl
| Download URL | core_pdfminer_six-0.0.0-py3-none-any.whl |
|---|---|
| Size | 6.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b390721c80d395b82806bda7d6aa53ba6a6ad11c57150b8ab713f74094d807a5
|
|
BLAKE2b-256 checksum How to use checksums |
7c8850111ab0a98fec6b058d8db36c8c14fa356a8327f86db36a10c6edb6a376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|