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]
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]
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
/* 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