talira

Compare

PyMuPDFpypdfium2Apache PDFBoxMuPDF
What it isA high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.Python bindings to PDFium, reasonably cross-platformThe Apache PDFBox library is an open source Java tool for working with PDF documents.The ultimate library for managing PDF documents
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.690.200.680.67
Stars11133—31423059
Last commit2026-11-13—2026-11-142026-11-17
LicenceAGPL-3.0-onlyApache-2.0 OR BSD-3-ClauseApache-2.0AGPL-3.0-or-later
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostableYesYesYesYes
Ways to run it
  • PyMuPDF (AGPL) (self-hosted, AGPL-3.0-only): free
    You arrange: share your source under the AGPL, including for networked deployments, keep the producer notice in generated PDFs
  • PyMuPDF commercial licence (Artifex) (self-hosted, proprietary): no published prices; contact Artifex sales (OEM distribution or subscription, per-copy cost with a quarterly minimum fee)
    You arrange: annual distribution-volume reporting for OEM distribution
  • PyMuPDF Office (self-hosted, proprietary): no published price; free trial key for a limited time
    You arrange: a licence key passed to pymupdf.office.unlock()
——
  • MuPDF (AGPL) (self-hosted, AGPL-3.0-or-later): free
    You arrange: release the full source code of systems built with MuPDF under the AGPL, including network services
  • MuPDF commercial licence (self-hosted, proprietary): contact sales
SOC 2————
HIPAA————
SSO————
API——No—
Plugins——No—
MCP server——No—
CompanyArtifex Software—Apache Software Foundation
non-profit
Artifex Software
Features
  • render pages of all supported formats to images
  • extract text, Markdown, tables and vector graphics
  • write text and draw vector graphics on PDF pages
  • handles damaged and encrypted PDFs and incremental updates
  • annotations and form field creation, reading and updating
  • redaction, optional content, font subsetting
  • Tesseract OCR API
  • merge PDFs with other document types
  • All 9 features
  • render pages at any scale or rotation, with optional form fields, to PIL images or NumPy arrays
  • text extraction by region or character range, and text search
  • table of contents, page labels and page boxes
  • page objects: iterate, insert and remove; image extraction
  • embedded file attachments: list, extract, add and delete
  • create PDFs, add pages, import pages from other documents and save
  • flatten forms and annotations
  • raw PDFium API through ctypes (pypdfium2.raw)
  • All 12 features
  • Unicode text extraction
  • Split and merge
  • Read and fill PDF forms
  • Print via the standard Java printing API
  • Render pages to images (PNG, JPEG)
  • Digital signatures
  • Create PDFs with embedded fonts and images
  • Preflight: PDF/A-1b validation
  • All 9 features
  • renders PDF, XPS, OpenXPS, EPUB, MOBI, FB2, CBZ/CBT, SVG (subset), Markdown and images
  • output to PDF, text, HTML, PostScript, PCL, PWG, PNG, SVG and PNM/PAM
  • mutool draw and convert: render and convert documents
  • mutool show, extract, clean, create, merge, poster, pages, info, grep, trim, recolor, bake, audit, barcode
  • mutool sign: digital signatures
  • mutool run: JavaScript programs with access to the MuPDF library
  • mupdf-gl viewer with table of contents, unicode search, annotation editing and redaction
  • Android viewers
  • All 11 features
Limitations
  • Can't digitally sign PDFs or create signature fields
  • Not thread-safe: use multiple processes instead of threads
  • Isn't thread-safe: PDFium can't be called from several threads at once, even for different documents, so render in parallel with processes
  • Doesn't give access to raw PDF objects (dictionaries, streams, name trees): PDFium's public API offers only higher-level functions