substitutefor

software · Q1591

MuPDF

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

Suggest a correction

Overview

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.[1]

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.[3]

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.[4]

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.[1]

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.[2][5]

Substitution considerations

MuPDF can substitute for 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.[3][4][6][7]

Capabilities & limitations

Document rendering

supported

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

Programmatic PDF processing and rendering · Windows, Linux, BSD, macOS tools and library · Version, build and integration requirements apply

1 source · check evidence
https://mupdf.readthedocs.io/en/latest/tools/mutool-draw.html

Image/vector/text output and rendering controls

vendor · checked 2026-10-07

PDF linearization

unsupported

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

Programmatic PDF processing and rendering · Windows, Linux, BSD, macOS tools and library · Version, build and integration requirements apply

1 source · check evidence
https://mupdf.readthedocs.io/en/latest/tools/mutool-clean.html

PDF rewriting, object cleanup and no-longer-supported linearization

vendor · checked 2026-10-07

macOS viewer availability

limited

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

Programmatic PDF processing and rendering · Windows, Linux, BSD, macOS tools and library · Version, build and integration requirements apply

1 source · check evidence
https://mupdf.readthedocs.io/en/latest/guide/install.html

Windows, Unix and macOS build routes; no standard Mac viewer

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

qpdf for Programmatic PDF rewriting and page processing

limited

Can cover selected PDF rewriting and page-processing tasks, but is not a replacement when qpdf linearization is required.[4][6][7]

Windows, Linux, BSD, macOS tools and library · Version, build and integration requirements apply

References

  1. What is MuPDF?

    Framework, document formats, viewer variants and commercial-only WebViewer

    vendor · retrieved 2026-10-07
  2. MuPDF licensing

    AGPL and commercial alternatives

    vendor · retrieved 2026-10-07
  3. mutool draw

    Image/vector/text output and rendering controls

    vendor · retrieved 2026-10-07
  4. mutool clean

    PDF rewriting, object cleanup and no-longer-supported linearization

    vendor · retrieved 2026-10-07
  5. MuPDF installation

    Windows, Unix and macOS build routes; no standard Mac viewer

    vendor · retrieved 2026-10-07
  6. qpdf overview

    Structural PDF processing without rendering

    vendor · retrieved 2026-10-07
  7. qpdf command-line reference

    --linearize creates web-optimized PDFs

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
17042026-10-20 05:37:20/* wbeditentity-create-item:0| */ sf:27df7703-af7b-4454-85b0-3dfb0746d7d6:v2 | Narrow only the qpdf substitution task to PDF rewriting and page processing, addressing the three reviewers’ factual correction. Rechecked qpdf’s official overv | attribution: /proposals/27df7703-af7b-4454-85b0-3dfb0746d7d6