talira

Compare

pypdfium2PyMuPDFPDF.jspdfium-render
What it isPython bindings to PDFium, reasonably cross-platformA high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.PDF Reader in JavaScriptA high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.200.690.760.23
Stars—1113354139—
Last commit—2026-11-132026-11-15—
LicenceApache-2.0 OR BSD-3-ClauseAGPL-3.0-onlyApache-2.0MIT OR Apache-2.0
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()
——
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
Company—Artifex SoftwareMozilla—
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
  • 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
  • PDF parsing and rendering
  • full viewer application
  • built into Firefox
  • official Chrome extension
  • PDF debugger for a file's internal structure
  • a legacy build for older browsers
  • render pages, or portions of pages, to bitmaps and image crate images
  • text and image extraction
  • form field introspection and filling
  • signature, attachment, annotation and link introspection
  • document concatenation and watermarking
  • create documents, pages, and text, path and bitmap page objects
  • custom fonts and custom text shaping inside a text object
  • binds to Pdfium at runtime (dynamic) or links it statically
  • All 11 features
Limitations
  • 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
  • Can't digitally sign PDFs or create signature fields
  • Not thread-safe: use multiple processes instead of threads
    • Doesn't include or build Pdfium: you supply a prebuilt Pdfium library to bind at runtime or link statically
    • Doesn't speed anything up with threads: every call into Pdfium is serialized behind a mutex, so use separate processes for parallel work