Skip to main content

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)

Source distribution for llama-index-readers-pdfmux 0.1.1
File Size Uploaded
llama_index_readers_pdfmux-0.1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-pdfmux 0.1.1
File Interpreter ABI Platform
llama_index_readers_pdfmux-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page