MuPDF Document-processing framework with a C library, command-line tools and viewer applications.
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]
Contents 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]
References What is MuPDF? Framework, document formats, viewer variants and commercial-only WebViewer
vendor · retrieved 2026-10-07 MuPDF licensing AGPL and commercial alternatives
vendor · retrieved 2026-10-07 mutool draw Image/vector/text output and rendering controls
vendor · retrieved 2026-10-07 mutool clean PDF rewriting, object cleanup and no-longer-supported linearization
vendor · retrieved 2026-10-07 MuPDF installation Windows, Unix and macOS build routes; no standard Mac viewer
vendor · retrieved 2026-10-07 qpdf overview Structural PDF processing without rendering
vendor · retrieved 2026-10-07 qpdf command-line reference --linearize creates web-optimized PDFs
vendor · retrieved 2026-10-07 Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.