MUPDF(1)

πŸ’– MUPDF(1) β€” the girlies' guide to the MuPDF viewer πŸ’–

okay bestie, sit down, hydrate, and let me tell you about mupdf. This is section 1 of the General Commands Manual, so it's a command you run, not a function you call. No cap. 🫢


✨ NAME ✨

mupdf β€” MuPDF is a lightweight PDF viewer written in portable C. That's it, that's the whole vibe: light, portable, C, iconic. πŸ’…


🌸 SYNOPSIS 🌸

mupdf [options] file [page-number]

πŸ¦‹ DESCRIPTION πŸ¦‹

MuPDF is a document viewer, and she's not picky β€” she eats PDF, XPS, EPUB, XHTML, CBZ, and a whole bunch of image formats like PNG, JPEG, GIF, and TIFF. Literally a main character who gets along with everyone. 🌈


πŸŽ€ OPTIONS πŸŽ€

Here's every single flag she supports, no skipping, we don't do that here:

  • -b box-name β€” use the page box you name. Your choices are MediaBox, CropBox, BleedBox, TrimBox, or ArtBox.
  • -c profile-filename β€” set the display ICC profile to the one living in that named file.
  • -p password β€” use this password to open an encrypted PDF file. She tries it as both the user password and the owner password, because she's thorough like that. πŸ‘‘
  • -r resolution β€” changes the initial zoom level, given as a resolution in dpi. Default is 72.
  • -A bits β€” changes the anti-aliasing quality, given as a number of bits from 0 (off) to 8 (best). Default is 8.
  • -B RRGGBB β€” sets the full-page black tint using hexadecimal color syntax. Default is 303030.
  • -C RRGGBB β€” sets the full-page white tint using hexadecimal color syntax. Default is FFFFF0.
  • -H height β€” page height in points, for EPUB layout.
  • -I β€” invert colors.
  • -J β€” disable JavaScripts in PDF forms.
  • -R extraction-options β€” enable reflow and set the text extraction options.
  • -S size β€” font size in points, for EPUB layout.
  • -U CSS-file β€” user style sheet, for EPUB layout.
  • -W width β€” page width in points, for EPUB layout.
  • -X β€” disable document styles, for EPUB layout.
  • -Y factor β€” set the UI scaling factor.

πŸ–±οΈ MOUSE BEHAVIOR πŸ–±οΈ

the mouse is giving so much, honestly:

  • Left mouse button click β€” a left click on a hyper link follows the link. In presentation mode it advances to the next page.
  • Right mouse button click β€” in presentation mode, goes back to the previous page.
  • Left mouse button drag β€” pan the page. Panning beyond the bottom or top edge will go to the next or previous page.
  • Right mouse button drag β€” select text in an area. On X11, the selected text can be pasted in another application with a middle click. Press Ctrl+C to copy the selected text to the clipboard. On Windows, the selected text will automatically be copied to the clipboard.
  • Scroll wheel β€” pan page up or down. Does not change page when reaching the bottom or top edge.
  • Shift + Scroll wheel β€” pan page left or right.
  • Control + Scroll wheel β€” zoom in or out.

⌨️ KEY BINDINGS ⌨️

  • ., pgdn, space β€” go to the next page.
  • ,, pgup, b β€” go to the previous page.
  • 123g β€” go to page 123.
  • g, G β€” go to the first or last page.
  • m β€” mark current page for snap back. Up to 256 pages can be marked.
  • t β€” go backward one step in mark history.
  • T β€” go forward one step in mark history.
  • [0–9]m β€” save the current page number in the numbered register.
  • [0–9]t β€” go to the page saved in the numbered register.

πŸ” Zooming and rotating

  • +, - β€” zoom in or out.
  • W, H β€” zoom page to exactly fit width/height of window.
  • Z β€” zoom page to fit either to width or height of window.
  • z β€” reset zoom level.
  • [, ] β€” rotate page left (counter-clockwise) or right (clockwise).
  • w β€” shrinkwrap window to fit the page.
  • f β€” toggles fullscreen mode.

🫧 Panning

  • h, left, j, k, l, right β€” pan page left, down, up, or right.

πŸ”Ž Searching

  • /, ? β€” search for text forwards or backwards.
  • n, N β€” find the next/previous search result.

🌟 Miscellaneous

  • F1 β€” show key bindings help.
  • Escape β€” stop searching and/or remove focus from annotation/widget.
  • <, > β€” increase/decrease EPUB/XHTML font size.
  • r β€” reload file.
  • p β€” toggle presentation mode. (mupdf-x11 only)
  • c β€” toggle between color and grayscale rendering. (mupdf-x11 only)
  • C β€” toggle full-page color tinting.
  • I β€” toggle between normal and inverted color rendering.
  • E β€” toggle ICC color mode.
  • e β€” toggle spot color mode.
  • A β€” set bit of anti-aliasing to use. The default is 8. 0 means no anti-aliasing, 9 means no anti-aliasing, centre-of-pixel rule, 10 means no anti-aliasing, any-part-of-a-pixel rule.
  • P β€” show page number and total number of pages.
  • i β€” show dialog box with information about the opened document.
  • B β€” change used page box. (MediaBox, CropBox, BleedBox, TrimBox, or ArtBox) The active page box is mentioned in the information dialog box.
  • o β€” show/hide document outline panel.
  • a β€” show/hide annotation panel.
  • R β€” show/hide redaction panel.
  • u β€” show/hide undo/redo panel.
  • Y β€” show/hide layers list.
  • o β€” start/stop highlighting links.
  • F β€” start/stop highlighting form widgets.
  • `, F12 β€” show JS console.
  • S β€” save updated document file.
  • q β€” quit.
ngl bestie, o shows up twice in that list and I am simply reporting the lore exactly as the ancestors wrote it. πŸ™ˆ Not my job to fix it, my job is to keep every single detail, and every single detail is what you got.

🚨 SIGNALS 🚨

  • SIGHUP β€” sending a SIGHUP signal to the mupdf process will also cause the viewed file to be reloaded automatically, for use in e.g. build scripts.

πŸ‘€ SEE ALSO πŸ‘€

mutool(1).


πŸ’œ AUTHOR πŸ’œ

MuPDF is Copyright 2006–2026 Artifex Software, Inc.


and that's the whole page, bestie β€” you ate it, you read it, you understood it. ✨ this little masterpiece landed in the world on June 3, 2026, out of the General Commands Manual, section 1, filed under MUPDF(1) β€” go forth and view some documents. πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from