Linux command
mupdf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open PDF file
mupdf [document.pdf]
Open at specific page
mupdf [document.pdf] [page_number]
Open with custom resolution
mupdf -r [150] [document.pdf]
Open password-protected PDF
mupdf -p [password] [document.pdf]
Open EPUB with custom layout
mupdf -W [600] -H [800] -S [14] [book.epub]
说明
mupdf is a lightweight PDF, XPS, and EPUB viewer. It renders documents with high quality using anti-aliased graphics. The viewer focuses on speed and simplicity. Documents render quickly even with complex graphics. Memory usage remains low compared to full-featured readers. Navigation uses keyboard shortcuts similar to vi. Page jumping, searching, and zooming are all keyboard-accessible. Mouse scrolling and dragging also work. The rendering engine handles transparency, gradients, and embedded fonts correctly. It supports PDF features including annotations, forms, and JavaScript (limited). Color inversion helps with reading in low light. The viewer remembers zoom level and page position when reopening documents.
参数
- -p _password_
- Password for encrypted PDFs.
- -r _resolution_
- Set zoom level via DPI (default: 72).
- -A _bits_
- Anti-aliasing quality, 0-8 (default: 8).
- -C _RRGGBB_
- White tint color in hex (default: FFFFF0).
- -B _RRGGBB_
- Black tint color in hex (default: 303030).
- -W _width_
- Page width in points for EPUB layout.
- -H _height_
- Page height in points for EPUB layout.
- -S _size_
- Font size in points for EPUB layout.
- -U _CSS-file_
- User stylesheet for EPUB rendering.
- -I
- Invert display colors.
- -J
- Disable JavaScript in PDF forms.
- -X
- Disable EPUB document styles.
FAQ
What is the mupdf command used for?
mupdf is a lightweight PDF, XPS, and EPUB viewer. It renders documents with high quality using anti-aliased graphics. The viewer focuses on speed and simplicity. Documents render quickly even with complex graphics. Memory usage remains low compared to full-featured readers. Navigation uses keyboard shortcuts similar to vi. Page jumping, searching, and zooming are all keyboard-accessible. Mouse scrolling and dragging also work. The rendering engine handles transparency, gradients, and embedded fonts correctly. It supports PDF features including annotations, forms, and JavaScript (limited). Color inversion helps with reading in low light. The viewer remembers zoom level and page position when reopening documents.
How do I run a basic mupdf example?
Run `mupdf [document.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _password_ do in mupdf?
Password for encrypted PDFs.