PDFluent vs pymupdf4llm
pymupdf4llm converts PDFs to Markdown for RAG and LLM ingestion pipelines; its repository sits in the pymupdf GitHub organisation. For its supported inputs and status, check its documentation. PDFluent's structured-extraction API (extract_markdown / extract_blocks) ships as a preview in 1.1.0, not yet marked stable, and also covers DOCX, PPTX, XLSX, and HTML from the same Rust core as the rest of the SDK.
Side-by-side
use pdfluent::{ExtractOptions, PdfDocument};
fn main() -> pdfluent::Result<()> {
let doc = PdfDocument::open("report.pdf")?;
// Structured extraction (Preview)
let markdown = doc.extract_markdown(&ExtractOptions::default())?;
println!("{}", markdown);
Ok(())
}import pymupdf4llm
markdown = pymupdf4llm.to_markdown("report.pdf")
print(markdown)Feature comparison
| Feature | PDFluent | pymupdf4llm |
|---|---|---|
| Primary purpose | General PDF/Office SDK + preview structured extraction | PDF to Markdown extraction, measured in the same run as PDFluent |
| Structured extraction status | Preview (1.1.0), not yet stable | Not assessed here; first PyPI release 24 April 2024, against 14 May 2026 for PDFluent (read 3 November 2026) |
| PDF to Markdown | Preview | |
| DOCX to Markdown | Preview: at least as good as Docling 2.132.0 on text, words, headings, heading levels, list levels, tables, TEDS, and coverage (A31, measured 2026-10-04) | Not assessed here |
| PPTX to Markdown | Preview: at least as good as Docling 2.132.0 on text, words, headings, heading levels, lists, and reading order; not tables/TEDS (A32, measured 2026-10-04) | Not assessed here |
| XLSX to Markdown | Preview: at least as good as Docling 2.132.0 on headings, tables, and TEDS; not words (A33, measured 2026-10-04) | Not assessed here |
| HTML to Markdown | Preview: lists and tables at least as good as Docling 2.132.0; not text/coverage (A34, measured 2026-10-04) | Not assessed here |
| PDF table structure | Table model on the balanced tier (Preview, opt-in), included in the 19-measure average below | Measured in the same run, on the same pages (A62, measured 2026-10-17) |
| Extraction quality, 19 measures | Balanced tier with the table model (Preview): average 0.721 against 0.693 for pymupdf4llm 1.28.2 over 19 measures* (A62, measured 2026-10-17). *Balanced tier with the table model (Preview), on our own held-out half of four public datasets, 17 October 2026. The table model was trained on the source datasets of two of them (PubTables-1M, FinTabNet), and most of those held-out pages are in their training split. On the 13 measures without that overlap the ranking is the same (0.650, 0.642, 0.610). Details on the benchmarks page. | Measured in the same run, on the same pages (A62, measured 2026-10-17) |
| Peak memory on structured extraction | Fast tier: 43 MB peak memory on one c3-standard-8, 8 vCPU, all cores (C22, measured 2026-10-17) | 412 MB in the same run (C22, measured 2026-10-17) |
| Time per page on structured extraction | Fast tier: 19 ms per page, median on all 8 cores of one c3-standard-8 (C22, measured 2026-10-17) | 232 ms per page in the same run (C22, measured 2026-10-17) |
| License model | AGPL-3.0 or commercial | AGPL-3.0, as the opendataloader-bench README states it (read 2 November 2026); check pymupdf4llm's documentation for commercial terms |
| Language bindings | Rust, Python, Node.js, .NET, Java, WASM | Python package on PyPI; other bindings not assessed here |
Pros and cons
PDFluent
- Fast tier: less peak memory and less time per page than pymupdf4llm 1.28.2 on the same 8-vCPU machine (C22, measured 2026-10-17)
- Balanced tier with the table model: average 0.721 against 0.693 for pymupdf4llm 1.28.2 across 19 extraction measures* (A62, measured 2026-10-17). *Balanced tier with the table model (Preview), on our own held-out half of four public datasets, 17 October 2026. The table model was trained on the source datasets of two of them (PubTables-1M, FinTabNet), and most of those held-out pages are in their training split. On the 13 measures without that overlap the ranking is the same (0.650, 0.642, 0.610). Details on the benchmarks page.
- Covers DOCX, PPTX, XLSX, and HTML in addition to PDF (Preview)
- One Rust core shared with the rest of the SDK: Rust, Python, Node.js, .NET, Java, WASM
- AGPL-3.0 for free use, with a commercial license as the alternative
- Structured extraction ships as a preview in 1.1.0: not yet stable
- The balanced tier, which carries the table results, is opt-in, Markdown only, and available in Rust, Python, Node and the CLI, not in Java, .NET, C or WASM
- Newer: first PyPI release 14 May 2026, against 24 April 2024 for pymupdf4llm (read 3 November 2026)
pymupdf4llm
- On PyPI since 24 April 2024, with 2,289 GitHub stars when read on 3 November 2026; stars measure attention, not quality
- Measured in the same run as PDFluent, so the benchmarks page shows how it scores on each of the 19 measures
- More peak memory and more time per page than PDFluent's fast tier on the same machine (C22, measured 2026-10-17)
When to use each
Choose PDFluent
Choose PDFluent's structured extraction if you need Markdown output across PDF and Office formats from one engine, or if memory and per-page time matter to you. It ships as a preview in 1.1.0.
Choose pymupdf4llm
Choose pymupdf4llm if you want PDF-to-Markdown extraction without relying on a preview API (check its documentation for its status and inputs), or if you already work in the PyMuPDF ecosystem.
Bottom line
pymupdf4llm and PDFluent overlap on one job: turning a PDF into Markdown for a RAG pipeline. PDFluent's extract_markdown and extract_blocks ship as a preview in 1.1.0, so the API may change in a minor release, and they also read DOCX, PPTX, XLSX and HTML. For pymupdf4llm's status and inputs, check its documentation. In the fast tier, on one 8-vCPU c3-standard-8, PDFluent took 19 ms per page against pymupdf4llm 1.28.2's 232 ms, and peaked at 43 MB of memory against 412 MB (C22, measured 2026-10-17). Quality is a separate measurement: in the balanced tier with the table model, PDFluent averaged 0.721 across 19 extraction measures, against 0.693 for pymupdf4llm 1.28.2* (A62, measured 2026-10-17). *Balanced tier with the table model (Preview), on our own held-out half of four public datasets, 17 October 2026. The table model was trained on the source datasets of two of them (PubTables-1M, FinTabNet), and most of those held-out pages are in their training split. On the 13 measures without that overlap the ranking is the same (0.650, 0.642, 0.610). Details on the benchmarks page.
Frequently asked questions
- Is PDFluent's structured extraction ready to replace pymupdf4llm in production today?
- Not yet. extract_markdown and extract_blocks ship labeled preview in SDK 1.1.0: they are functional but not marked stable, and the API may change in a minor release. If you need an API that is not labeled preview, PDFluent's plain-text extraction is not a preview feature, and for pymupdf4llm you should check its documentation for its status.
- Is PDFluent's Markdown output better than pymupdf4llm's?
- On the average across 19 measures in our run, yes, and not on every measure. In the balanced tier with the table model (Preview, opt-in, installed with pdfluent models install), PDFluent averaged 0.721 across 19 measures, against 0.693 for pymupdf4llm 1.28.2* (A62, measured 2026-10-17). The benchmarks page lists all 19 measures, including the ones where pymupdf4llm scores higher. The fast tier is measured separately: 19 ms per page against 232 ms for pymupdf4llm, on all cores of one 8-vCPU machine (C22, measured 2026-10-17). *Balanced tier with the table model (Preview), on our own held-out half of four public datasets, 17 October 2026. The table model was trained on the source datasets of two of them (PubTables-1M, FinTabNet), and most of those held-out pages are in their training split. On the 13 measures without that overlap the ranking is the same (0.650, 0.642, 0.610). Details on the benchmarks page.
- Does PDFluent handle Office files the way pymupdf4llm does?
- We did not assess Office input for pymupdf4llm; check its documentation. PDFluent's preview extraction covers PDF, DOCX, PPTX, XLSX, and HTML, with the Office formats benchmarked against Docling rather than pymupdf4llm (A31-A34, measured 2026-10-04). Each claim is scoped to specific metrics: DOCX covers text, tables, and structure; PPTX excludes tables; XLSX excludes word-level text; HTML covers only lists and tables.
- What license is PDFluent's structured extraction under?
- The same as the rest of the SDK: AGPL-3.0, or a commercial license for proprietary use. The opendataloader-bench README lists pymupdf4llm as AGPL-3.0 (read 2 November 2026); check pymupdf4llm's documentation for commercial terms.
Try it on your own files.
Free under the AGPLv3, or a commercial licence if you would rather not publish your own source.
PyMuPDF and MuPDF are trademarks of Artifex Software, Inc. PDFluent is an independent product of Innovation Trigger B.V. and is not affiliated with or endorsed by Artifex.