MuPDF

From ArchWiki

MuPDF is a lightweight document viewer and toolkit written in portable C. It supports PDF, XPS, EPUB, XHTML, CBZ, and various image formats such as PNG, JPEG, GIF, and TIFF.

The renderer in MuPDF is tailored for high quality anti-aliased graphics. It renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen.

MuPDF supports all static functions required by PDF 1.7 and is a lightweight alternative to poppler based pdf applications. It also support standard PDF annotations such as highlight, shape tools, drawing, notes and file attachment.

Installation

Install the mupdf package or mupdf-gl for the OpenGL backend and mupdf-gitAUR for the development version. For the document manipulation tools install the mupdf-tools package.

Usage

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Both packages contain the same man page. Deviations should be noted. (Discuss in Talk:MuPDF)

See mupdf --help or mupdf(1) and mutool(1) for more information.

Note: Options for mupdf and mupdf-gl may differ.

The application is started either from the command-line with mupdf filename.pdf or from a file manager.

Tip: MuPDF can be sandboxed with Firejail.

Navigation within a document works with standard keyboard shortcuts and mouse interaction. For example, B and Space scroll up and down.

MuPDF

Supported arguments are -d password for required passwords, -z N% for the zoom level and -p N for the first selected page and more.

When zoomed in, the document can be moved by using the left mouse button. Pressing the right mouse button while moving the mouse will mark an area, and all text will be copied and can be inserted by clicking the middle mouse button.

MuPDF GL

Press I to invert colours. See [1] for the manual or press F1 for help.

Set as default PDF viewer

$ xdg-mime default mupdf.desktop application/pdf

For more information on setting default applications see XDG MIME Applications.

Annotation Support

To access annotation menu, simply press a, a sidebar for annotation will appear which support almost all standard PDF annotations tools (available at least in mupdf-gl) .

See also