HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mupdf — A lightweight PDF, XPS, and E-book viewer. More information: <https://mupdf.readthedocs.io/en/latest

Submitted by: @import:tldr-pages··
0
Viewed 0 times
mupdfxpscommandandlightweightbookclipdf

Problem

How to use the mupdf command: A lightweight PDF, XPS, and E-book viewer. More information: <https://mupdf.readthedocs.io/en/latest/tools/mupdf-gl.html>.

Solution

mupdf — A lightweight PDF, XPS, and E-book viewer. More information: <https://mupdf.readthedocs.io/en/latest/tools/mupdf-gl.html>.

Open a PDF on the first page:
mupdf {{path/to/file}}


Open a PDF on page 3:
mupdf {{path/to/file}} {{3}}


Open a password secured PDF:
mupdf -p {{password}} {{path/to/file}}


Open a PDF with an initial zoom level, specified as DPI, of 72:
mupdf -r {{72}} {{path/to/file}}


Open a PDF with inverted color:
mupdf -I {{path/to/file}}


Open a PDF tinted red #FF0000 (hexadecimal color syntax RRGGBB):
mupdf -C {{FF0000}}


Open a PDF without anti-aliasing (0 = off, 8 = best):
mupdf -A {{0}}

Code Snippets

Open a PDF on the first page

mupdf {{path/to/file}}

Open a PDF on page 3

mupdf {{path/to/file}} {{3}}

Open a password secured PDF

mupdf -p {{password}} {{path/to/file}}

Open a PDF with an initial zoom level, specified as DPI, of 72

mupdf -r {{72}} {{path/to/file}}

Open a PDF with inverted color

mupdf -I {{path/to/file}}

Context

tldr-pages: common/mupdf

Revisions (0)

No revisions yet.