talira

The ultimate library for managing PDF documents

open sourceAGPL-3.0-or-laterself-hostablefree

MuPDF is Artifex's lightweight, fast framework for viewing, rendering, converting and manipulating PDF, XPS, EPUB, MOBI, FB2, CBZ, SVG, Markdown and image documents. It has a portable C library, the mutool command-line tool (draw, convert, show, extract, clean, create, merge, poster, sign, trim, run and more), and viewers for Linux, Windows and Android, with MuPDF.js (WebAssembly for browsers, Node and Bun), Java, MuPDF.NET and PyMuPDF on top. It is dual-licensed: the GNU AGPL for open source use, or a commercial licence from Artifex for products that can't meet the AGPL.

Ways to install

Problems it solves

  • render PDF pages to PNG images quickly from the command line
  • extract the embedded images and fonts from a PDF file
  • repair a broken PDF that some readers refuse to open
  • merge pages from several PDFs into one file in a script
  • convert a PDF to text, HTML or SVG for processing
  • redact sensitive content from a PDF so the text is really gone
  • embed a fast PDF renderer in my C, Java or JavaScript application
  • split a large page into tiles to print it as a poster
  • digitally sign a PDF from a command-line tool
  • open EPUB, XPS and comic book files with the same engine I use for PDFs
  • look at the internal objects of a PDF to debug why it renders wrong
  • a lightweight PDF viewer with annotation editing and full-text search on Linux or Windows
  • need a commercial licence for a PDF engine because we can't open-source our product

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
  • text, image and metadata extraction
  • redaction, annotation, splitting, merging and compression
View 1 more
  • portable C library; MuPDF.js (WebAssembly), Java (JNI), MuPDF.NET and PyMuPDF bindings

Ways to run it

MuPDF (AGPL)

You run it, AGPL-3.0-or-later

free34

Not included

  • technical support
  • use in closed-source products or services without releasing their source

You arrange

  • release the full source code of systems built with MuPDF under the AGPL, including network services

Self-hosting docs

MuPDF commercial licence

You run it, under a commercial licence

contact sales35

Only in this edition

  • no source code disclosure
  • technical support
  • free upgrades

Self-hosting docs

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what MuPDF does.

  1. Apache PDFBox The Apache PDFBox library is an open source Java tool for working with PDF documents.
  2. pdfcpu PDF tooling for Go and the command line
  3. Ghostscript An interpreter for the PostScript language and PDF files
  4. qpdf A content-preserving PDF document transformer
  5. PyMuPDF A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
  6. hayro A set of Rust crates for parsing, interpreting and rendering PDF files.

Compare MuPDF with the top 3