MuPDF Tools
$ mutool Official Low RiskMuPDF's mutool provides subcommands including mutool info, mutool show, mutool draw, mutool extract, mutool merge, and mutool clean. It renders pages and inspects embedded fonts, images, and PDF objects much faster than heavier Java or PostScript stacks.
brew install mupdf-tools Sub-second PDF page rendering (mutool draw) and resource inspection (mutool info) belong directly in local shell commands.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean subcommand hierarchy (info, show, draw, merge, clean), strictly non-interactive, and zero ANSI noise, though output is plain text rather than JSON.
- Subcommands like
mutool infoandmutool showrun non-interactively - No
--jsonoutput flag
mutool info and mutool show are strictly read-only; mutool extract dumps all embedded resources into the current working directory if not isolated.
- Read-only inspection subcommands
mutool extractwrites into CWD unless run inside a dedicated output directory
Compact C binary packaged as mupdf-tools on Homebrew and Linux distros, plus official cross-platform builds.
- Available via
brew install mupdf-tools
Extremely fast page rendering, text/HTML/SVG extraction, PDF merging, and garbage-collected cleanup in one tool.
- Handles PDF, XPS, CBZ, and EPUB rendering and PDF manipulation
Official Artifex Software toolkit with active releases and strong C library backing.
- Maintained by Artifex Software alongside MuPDF
Clear mutool <subcommand> -h help and online ReadTheDocs subcommand reference.
- Documented at mupdf.readthedocs.io
Security, Auth & Guardrails
None required; accepts -p <password> inline for encrypted PDFs.
AGPL-3.0-or-later open source; commercial OEM license required for proprietary redistribution.
# MuPDF Tools (mutool) Agent Rules - Inspect page count with `mutool info` before running `mutool draw` so large PDFs do not write hundreds of PNGs. - Always pass explicit `-o <output>` paths on `mutool merge`, `mutool clean`, and `mutool draw`.
Agent-Ready Command Recipes
Safe Read-Only Queries
mutool info input.pdf
Reports page count, media boxes, fonts, and embedded images without writing files.
mutool show input.pdf trailer
Prints low-level PDF trailer dictionary entries to stdout for structural debugging.
Controlled Writes & Previews
mutool draw -r 150 -o page-%d.png input.pdf 1-3
Rasterizes pages 1–3 at 150 DPI into page-1.png..page-3.png.
Strengths for Agents
- + Significantly faster PDF page rendering and inspection than Java or Ghostscript alternatives.
- + Clean
mutool <subcommand>design avoids cryptic PostScript flags.
Caveats & Pitfalls
- !
mutool extractwrites extracted fonts/images into the current working directory. - ! AGPL-3.0 license requires commercial licensing for closed-source distribution.