talira

Compare

hayropdfium-renderMuPDFpdf-rs
What it isA set of Rust crates for parsing, interpreting and rendering PDF files.A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.The ultimate library for managing PDF documentsRust library to read, manipulate and write PDF files.
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.620.230.670.15
Stars868—3059—
Last commit2026-11-14—2026-11-17—
LicenceApache-2.0 OR MITMIT OR Apache-2.0AGPL-3.0-or-laterMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostableYesYesYesYes
Ways to run it——
  • 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————
Plugins————
MCP server————
Company——Artifex Software—
Features
  • read-only PDF parsing (hayro-syntax)
  • content stream interpreter with an abstract device (hayro-interpret)
  • CPU rasterization to bitmaps (hayro)
  • PDF to SVG (hayro-svg)
  • standalone JPEG 2000, JBIG2 and CCITT decoders
  • font and CMap parsers
  • embedded standard fonts and CMaps (default features)
  • 1,600+ PDF visual regression suite
  • All 10 features
  • 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
  • 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
  • typed views of PDF objects: catalog, pages, fonts, XObjects, colour spaces, annotations, forms, structure tree
  • content streams decoded into an Op enum
  • lazy object resolution and stream decoding, with optional caching and memory mapping
  • stream filters and predictors
  • RC4 and AES decryption with the standard security handler
  • strict and tolerant parsing modes, with an object size limit against decompression bombs
  • cross-reference tables and streams, object streams and incremental updates
  • building a document from scratch and importing objects into it
  • All 9 features
Limitations
    • 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
      • Doesn't render PDF pages to images: rendering is in the separate pdf_render crate
      • Doesn't extract text: text extraction is in the separate pdf_text and pdf_render crates
      • Doesn't repair broken PDFs: it can parse damaged files tolerantly but has no repair
      • Can't rewrite an arbitrary existing PDF yet: writing is experimental, and only building from scratch and incremental updates work