pdf-oxide
The fastest Python PDF library — 0.8ms mean, 5× faster than the industry leaders, 100% pass rate on 3,830 real-world PDFs. Text extraction, Markdown/HTML conversion, PDF creation and editing.
What it is and what it does
pdf-oxide is a Python binding to a Rust-based PDF toolkit that handles text extraction, image extraction, markdown and HTML conversion, form field manipulation, and PDF creation. It ships as precompiled wheels for common platforms (Linux, macOS, Windows on x86_64 and ARM) with no system dependencies or build step required. The library exposes a page-based API where extraction is lazy—properties like `page.text` and `page.markdown()` compute results only when accessed.
The package targets developers building document pipelines, RAG systems, or LLM integrations who need reliable PDF parsing without the overhead of heavier alternatives. It supports Python 3.9 through 3.14, has zero runtime dependencies, and is licensed under MIT or Apache-2.0, making it suitable for commercial and closed-source projects. The fact sheet indicates active maintenance (latest release 17 days old, 955 GitHub stars) and no known security vulnerabilities.
Use it for:
- Extract text from PDFs for indexing into a vector database or RAG pipeline.
- Convert PDF documents to Markdown for processing by language models.
- Batch extract images from scanned documents or reports.
- Fill PDF form fields programmatically and save the result.
- Search for keywords across a PDF and retrieve their page and bounding-box locations.
- Generate PDFs from Markdown, HTML, or images as part of a document generation workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts text, images, and metadata from PDFs and converts them to Markdown or HTML, powered by a Rust core compiled to native wheels with no system dependencies.
Yes, if you need fast, reliable PDF text or image extraction without licensing restrictions. The permissive dual license, zero runtime dependencies, and precompiled wheels make it a low-friction alternative to AGPL-licensed competitors. Active maintenance and no known vulnerabilities support stability. Install friction is medium but manageable; the main constraint is Python 3.9+. Suitable for production use in commercial and closed-source projects.
Install
pdf-oxide on PyPI
pip
pip install pdf-oxideuv
uv add pdf-oxidepoetry
poetry add pdf-oxideInstalling pdf-oxide
Before you install
Medium friction: precompiled wheels for Linux, macOS, and Windows (x86_64, aarch64, arm64) mean no build step or Rust toolchain required. Requires Python 3.9+. Active maintenance with latest release 17 days old.
License in practice
Dual MIT / Apache-2.0 license permits unrestricted commercial and closed-source use, unlike some competing PDF libraries. No copyleft obligations.
Quickstart
pip install pdf_oxide
from pdf_oxide import PdfDocument
with PdfDocument("paper.pdf") as doc:
print(len(doc)) # page count
for page in doc:
text = page.text
md = page.markdown(detect_headings=True)
Requires Python 3.9 or later.
Verify before relying
- Whether the 0.8ms mean and 100% pass rate claims are independently verified or from the maintainer's own benchmark.
- Whether image extraction returns raw bytes or requires additional dependencies to save to disk.
- Whether form field editing and PDF creation are fully stable or still experimental in this version.
Package facts
| License | MIT OR Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 160,772/month — #10,652 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pdf_oxide-0.3.77-cp38-abi3-macosx_10_12_x86_64.whl; pdf_oxide-0.3.77-cp38-abi3-macosx_11_0_arm64.whl; pdf_oxide-0.3.77-cp38-abi3-manylinux_2_28_aarch64.whl; pdf_oxide-0.3.77-cp38-abi3-manylinux_2_28_x86_64.whl; pdf_oxide-0.3.77-cp38-abi3-musllinux_1_2_aarch64.whl; pdf_oxide-0.3.77-cp38-abi3-musllinux_1_2_x86_64.whl; pdf_oxide-0.3.77-cp38-abi3-win_amd64.whl; pdf_oxide-0.3.77-cp38-abi3-win_arm64.whl
Keywords: pdf, text-extraction, pdf-parser, pymupdf-alternative, rag, llm, ocr, markdown, document-parser, pdf-to-text, pdf-to-markdown, data-extraction
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
pdftextExtracts plain text or structured blocks,…
permissive · top 15,000 on PyPI
marker-pdfMarker converts PDFs, images, and other…
permissive · top 15,000 on PyPI
kreuzbergExtracts text, tables, images, and metadata…
permissive · top 15,000 on PyPI
camelot-pyExtracts tables from PDFs into pandas…
permissive · top 5,000 on PyPI
unPDFExtracts individual characters and metadata…
permissive · top 15,000 on PyPI
pymupdf4llmConverts PDFs and documents into clean,…
agpl · top 1,000 on PyPI
liteparseLiteParse provides Python bindings for fast,…
permissive · top 15,000 on PyPI
pdftotextExtracts text from PDF files, including…
permissive · top 15,000 on PyPI
pypdfium2pypdfium2 is a Python binding to PDFium that…
permissive · top 1,000 on PyPI