{"schemaVersion":"1.0","record":{"label":"MuPDF","description":"Document-processing framework with a C library, command-line tools and viewer applications.","aliases":["mutool"],"kind":"software","website":"https://mupdf.com/","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.","license":"GNU AGPL or commercial license; WebViewer commercial-only","lifecycle":"active","example":false,"features":[{"name":"Document rendering","status":"supported","detail":"mutool draw supports image, vector and text outputs with configurable rendering settings.","useCase":"Programmatic PDF processing and rendering","platforms":["Windows","Linux","BSD","macOS tools and library"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://mupdf.readthedocs.io/en/latest/tools/mutool-draw.html","locator":"Image/vector/text output and rendering controls","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]},{"name":"PDF linearization","status":"unsupported","detail":"Current mutool clean documentation marks its linearization option as no longer supported.","useCase":"Programmatic PDF processing and rendering","platforms":["Windows","Linux","BSD","macOS tools and library"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://mupdf.readthedocs.io/en/latest/tools/mutool-clean.html","locator":"PDF rewriting, object cleanup and no-longer-supported linearization","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]},{"name":"macOS viewer availability","status":"limited","detail":"The installation guide supports tools/library builds but says no viewer is available as standard on macOS.","useCase":"Programmatic PDF processing and rendering","platforms":["Windows","Linux","BSD","macOS tools and library"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://mupdf.readthedocs.io/en/latest/guide/install.html","locator":"Windows, Unix and macOS build routes; no standard Mac viewer","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]}],"alternatives":[],"slug":"mupdf","draftAlternatives":[{"targetSlug":"qpdf","status":"limited","detail":"Can cover selected PDF rewriting and page-processing tasks, but is not a replacement when qpdf linearization is required.","useCase":"Programmatic PDF rewriting and page processing","platforms":["Windows","Linux","BSD","macOS tools and library"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://mupdf.readthedocs.io/en/latest/tools/mutool-clean.html","locator":"PDF rewriting, object cleanup and no-longer-supported linearization","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural PDF processing without rendering","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/cli.html","locator":"--linearize creates web-optimized PDFs","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}]}],"evidence":[{"url":"https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html","locator":"Framework, document formats, viewer variants and commercial-only WebViewer","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural PDF processing without rendering","retrievedAt":"2026-10-07T12:29:31.703Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html","locator":"Framework, document formats, viewer variants and commercial-only WebViewer","retrievedAt":"2026-10-07T12:29:31.703Z","id":"overview","title":"What is MuPDF?","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/license.html","locator":"AGPL and commercial alternatives","retrievedAt":"2026-10-07T12:29:31.703Z","id":"license","title":"MuPDF licensing","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/tools/mutool-draw.html","locator":"Image/vector/text output and rendering controls","retrievedAt":"2026-10-07T12:29:31.703Z","id":"draw","title":"mutool draw","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/tools/mutool-clean.html","locator":"PDF rewriting, object cleanup and no-longer-supported linearization","retrievedAt":"2026-10-07T12:29:31.703Z","id":"clean","title":"mutool clean","kind":"vendor"},{"url":"https://mupdf.readthedocs.io/en/latest/guide/install.html","locator":"Windows, Unix and macOS build routes; no standard Mac viewer","retrievedAt":"2026-10-07T12:29:31.703Z","id":"install","title":"MuPDF installation","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/overview.html","locator":"Structural PDF processing without rendering","retrievedAt":"2026-10-07T12:29:31.703Z","id":"qpdf","title":"qpdf overview","kind":"vendor"},{"url":"https://qpdf.readthedocs.io/en/stable/cli.html","locator":"--linearize creates web-optimized PDFs","retrievedAt":"2026-10-07T12:29:31.703Z","id":"qpdf-cli","title":"qpdf command-line reference","kind":"vendor"}],"overviewCitations":["overview"],"licenseCitations":["license","overview"],"sections":[{"id":"rendering","heading":"Rendering and extraction","paragraphs":[{"id":"rendering-detail","content":[{"text":"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."}],"citations":["draw"]}]},{"id":"rewriting","heading":"PDF rewriting and preservation","paragraphs":[{"id":"rewriting-detail","content":[{"text":"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."}],"citations":["clean"]}]},{"id":"interfaces","heading":"Libraries and viewer products","paragraphs":[{"id":"interfaces-detail","content":[{"text":"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."}],"citations":["overview"]}]},{"id":"availability","heading":"Availability and licensing","paragraphs":[{"id":"availability-detail","content":[{"text":"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."}],"citations":["install","license"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"MuPDF can substitute for "},{"text":"qpdf","targetSlug":"qpdf"},{"text":" 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."}],"citations":["clean","draw","qpdf","qpdf-cli"]}]}]},"id":"Q1591","revision":1704,"updatedAt":"2026-10-20T05:37:20Z","sourceUrl":"https://substitutefor.net/entities/Q1591?revision=1704"}}