LlamaIndex Readers Integration: pdfmux
pdfmux extracts PDFs into section-aware, LLM-ready chunks. It scores each page's extraction confidence and routes low-confidence or scanned pages to an OCR fallback automatically, so mixed digital/scanned documents come back as clean text without manual pre-processing. Each chunk is returned as a LlamaIndex Document with title, page range, token estimate, and confidence metadata.
Installation
pip install llama-index-readers-pdfmux
Usage
from llama_index.readers.pdfmux import PDFMuxReader
reader = PDFMuxReader(quality="standard") # "fast" | "standard" | "high"
documents = reader.load_data("report.pdf")
for doc in documents:
print(doc.metadata["title"], "—", doc.metadata["tokens"], "tokens")
Each returned Document carries metadata: source, title, page_start, page_end, tokens, confidence. Pass extra_info={...} to load_data to merge additional metadata into every document.
This loader is designed for RAG/LLM pipelines that ingest a mix of scanned and digital PDFs and need per-page confidence to decide what to trust.
Metadata
Release files for llama-index-readers-pdfmux 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_readers_pdfmux-0.1.1.tar.gz | 3.6 kB | Without provenance | Details for llama_index_readers_pdfmux-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_readers_pdfmux-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_readers_pdfmux-0.1.1-py3-none-any.whl |
Total release size: 7.5 kB
Release files / llama_index_readers_pdfmux-0.1.1.tar.gz
| Download URL | llama_index_readers_pdfmux-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
879244c431339cc72a0cb08ff7bb5c0f629257060153901fcd1d389ca906435c
|
|
BLAKE2b-256 checksum How to use checksums |
4861f7459fed14ed22363ccd16ca61d58e711c535457dbe508e2e8e776c76b45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / llama_index_readers_pdfmux-0.1.1-py3-none-any.whl
| Download URL | llama_index_readers_pdfmux-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
333e192a855fc17efc783f5beb918b07cd3cfe36c030a61ff6fbd97198af51d1
|
|
BLAKE2b-256 checksum How to use checksums |
9ad4700eeb78d2f29b3a0cbe15d43eae4bd11d7919ae5c6342068a8036a82469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for llama-index-readers-pdfmux 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.