# 8.6.文档阅读器

自 UNIX® 面世以来，一些新的文档格式逐渐流行起来，而这些格式所需的查看器可能在基本系统中不可用。本节介绍了如何安装以下文档查看器：

**表 5. 支持的文档查看器**

| 名称       | 许可证     | 包含的包                                                                        | 所需资源 |
| -------- | ------- | --------------------------------------------------------------------------- | ---- |
| Okular   | GPL 2.0 | [graphics/okular](https://cgit.freebsd.org/ports/tree/graphics/okular/)     | 重    |
| Evince   | GPL 2.0 | [graphics/evince](https://cgit.freebsd.org/ports/tree/graphics/evince/)     | 中    |
| ePDFView | GPL 2.0 | [graphics/epdfview](https://cgit.freebsd.org/ports/tree/graphics/epdfview/) | 中    |
| Xpdf     | GPL 2.0 | [graphics/xpdf](https://cgit.freebsd.org/ports/tree/graphics/xpdf/)         | 轻    |
| Zathura  | Zlib    | [graphics/zathura](https://cgit.freebsd.org/ports/tree/graphics/zathura/)   | 轻    |

## 8.6.1. Okular

Okular 是一款通用文档查看器，属于 KDE Plasma 项目的一部分。

Okular 结合了出色的功能，支持多种文档格式，如 PDF、Postscript、DjVu、CHM、XPS、ePub 等。

安装 Okular，执行：

```sh
# pkg install okular
```

## 8.6.2. Evince

Evince 是一款支持多种文档格式（包括 PDF 和 Postscript）的文档查看器，属于 GNOME 项目的一部分。Evince 的目标是用一个简单的应用程序替代像 ggv 和 gpdf 这样的文档查看器。

安装 Evince，执行：

```sh
# pkg install evince
```

## 8.6.3. ePDFView

ePDFView 是一款轻量级的 PDF 文档查看器，仅使用 Gtk+ 和 Poppler 库。ePDFView 的目标是提供一个简单的 PDF 文档查看器，类似于 Evince，但不使用 GNOME 库。

安装 ePDFView，执行：

```sh
# pkg install epdfview
```

## 8.6.4. Xpdf

对于喜欢小巧 FreeBSD PDF 查看器的用户，Xpdf 提供了一款轻量高效的查看器，所需资源较少。它使用标准的 X 字体，不需要额外的工具包。

安装 Xpdf，执行：

```sh
# pkg install xpdf
```

## 8.6.5. Zathura

Zathura 是一款高度可定制且功能强大的文档查看器。它提供简约、节省空间的界面，主要专注于键盘交互，使用起来非常便捷。

安装支持 PDF 的 Zathura，执行：

```sh
# pkg install zathura zathura-pdf-mupdf
```

此外，还可以安装 [graphics/zathura-pdf-poppler](https://cgit.freebsd.org/ports/tree/graphics/zathura-pdf-poppler/) 提供替代的 PDF 支持，安装 [graphics/zathura-ps](https://cgit.freebsd.org/ports/tree/graphics/zathura-ps/) 提供 PostScript 支持，安装 [graphics/zathura-djvu](https://cgit.freebsd.org/ports/tree/graphics/zathura-djvu/) 提供 DjVu 支持，以及安装 [graphics/zathura-cb](https://cgit.freebsd.org/ports/tree/graphics/zathura-cb/) 提供漫画书支持。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbook.bsdcn.org/di-8-zhang-zhuo-mian-huan-jing/8.6.-wen-dang-yue-du-qi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
