# MuPDF

Document\-processing framework with a C library, command\-line tools and viewer applications\.

ID: Q1591 · Revision: 1704

Type: software · License: GNU AGPL or commercial license; WebViewer commercial\-only[^license][^overview] · Status: active

Website: https://mupdf.com/



MuPDF is a document\-processing framework comprising a portable C library, command\-line tools and viewer applications\. It can render, convert and manipulate PDFs and several other document formats\. The framework is distinct from the separately packaged commercial MuPDF WebViewer, and capabilities vary between its full and legacy viewer applications\.[^overview]

## Rendering and extraction

The draw tool can produce page images, vector outputs and extracted text, including structured text formats\. Resolution, page dimensions, page boxes and color settings influence the result\. Banded rendering can reduce memory use for certain image outputs\. These are processing controls rather than proof of identical output across documents or viewers; an application still needs to choose settings appropriate to previews, printing or extraction\.[^draw]

## PDF rewriting and preservation

The clean tool rewrites PDF syntax, can select page ranges and offers options for removing unused objects, deduplicating resources and handling compressed streams\. Some options also change images or annotation appearance streams, so a rewrite should not automatically be treated as an unchanged byte\-for\-byte archival copy\. The current manual explicitly marks linearization as no longer supported, despite retaining the old option in its reference\.[^clean]

## Libraries and viewer products

The C library is a component for applications, while mutool exposes operations to command\-line workflows\. The documented framework also has Java and JavaScript interfaces, but those do not make every packaged viewer equivalent\. The full OpenGL viewer includes features missing from legacy viewers\. MuPDF WebViewer is described separately as commercial\-license\-only; the framework's open\-source availability should not be inherited as the WebViewer product's license\.[^overview]

## Availability and licensing

The installation guide describes Windows and Unix\-like builds, including macOS tools and libraries, while warning that a standard macOS viewer is not included\. MuPDF offers GNU AGPL licensing and a separate commercial agreement\. Integrators need to evaluate the applicable terms for their actual component and distribution, rather than assume that a downloadable library grants unrestricted use in every proprietary product\.[^install][^license]

## Substitution considerations

MuPDF can substitute for [qpdf](/qpdf) for some PDF rewriting and page\-processing tasks, with additional rendering capabilities when a pipeline needs images or extracted text\. The overlap is incomplete: qpdf documents linearized output, while current MuPDF clean no longer supports that operation\. Applications choosing between them should identify whether they need structural preservation, rendering, low\-level APIs or a specific output feature before changing implementations\.[^clean][^draw][^qpdf][^qpdf-cli]

## Capabilities and substitutions

### Document rendering — supported

mutool draw supports image, vector and text outputs with configurable rendering settings\.[^draw]

Use case: Programmatic PDF processing and rendering · Platforms: Windows, Linux, BSD, macOS tools and library · Region: Version, build and integration requirements apply

### PDF linearization — unsupported

Current mutool clean documentation marks its linearization option as no longer supported\.[^clean]

Use case: Programmatic PDF processing and rendering · Platforms: Windows, Linux, BSD, macOS tools and library · Region: Version, build and integration requirements apply

### macOS viewer availability — limited

The installation guide supports tools/library builds but says no viewer is available as standard on macOS\.[^install]

Use case: Programmatic PDF processing and rendering · Platforms: Windows, Linux, BSD, macOS tools and library · Region: Version, build and integration requirements apply

### [Substitute for qpdf](/qpdf) — limited

Can cover selected PDF rewriting and page\-processing tasks, but is not a replacement when qpdf linearization is required\.[^clean][^qpdf][^qpdf-cli]

Use case: Programmatic PDF rewriting and page processing · Platforms: Windows, Linux, BSD, macOS tools and library · Region: Version, build and integration requirements apply

## References

[^overview]: [What is MuPDF?](<https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html>) — Framework, document formats, viewer variants and commercial\-only WebViewer (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^license]: [MuPDF licensing](<https://mupdf.readthedocs.io/en/latest/license.html>) — AGPL and commercial alternatives (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^draw]: [mutool draw](<https://mupdf.readthedocs.io/en/latest/tools/mutool-draw.html>) — Image/vector/text output and rendering controls (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^clean]: [mutool clean](<https://mupdf.readthedocs.io/en/latest/tools/mutool-clean.html>) — PDF rewriting, object cleanup and no\-longer\-supported linearization (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^install]: [MuPDF installation](<https://mupdf.readthedocs.io/en/latest/guide/install.html>) — Windows, Unix and macOS build routes; no standard Mac viewer (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^qpdf]: [qpdf overview](<https://qpdf.readthedocs.io/en/stable/overview.html>) — Structural PDF processing without rendering (vendor; retrieved 2026-10-07T12:29:31.703Z)

[^qpdf-cli]: [qpdf command\-line reference](<https://qpdf.readthedocs.io/en/stable/cli.html>) — \-\-linearize creates web\-optimized PDFs (vendor; retrieved 2026-10-07T12:29:31.703Z)

Source revision: https://substitutefor.net/entities/Q1591?revision=1704
