# PDF 导出

### 允许读者导出你已发布内容的 PDF 版本

要为访客启用或禁用你的网站的 PDF 导出功能， [已发布的文档站点](https://github.com/GitbookIO/public-docs/blob/main/collaboration/broken-reference/README.md)，打开文档站点的仪表板，打开 **自定义** 选项卡，然后导航到 **配置 → 页面操作**。在那里，你可以切换 **导出为 PDF** 的开或关。

此设置决定 **你已发布内容的读者是否可以将其下载为 PDF 格式**。此功能仅适用于 **Premium 和 Ultimate 站点**.

### 将你自己的内部内容导出为 PDF

无论你如何配置已发布的文档站点，组织中所有登录的 Pro 或 Enterprise 成员都可以将某个页面——或整个空间——从你的内部知识库中导出为 PDF 文件。

{% hint style="warning" %}
请注意，导出内部内容为 PDF 时，目前不支持跨空间链接。
{% endhint %}

#### 导出单个页面

1. 打开你要导出的页面，然后打开该页面的 [操作菜单](/docs/documentation/zh/zi-yuan/gitbook-ui.md#the-actions-menu)

   <picture><source srcset="/files/a86ca4c86a5cb7b88c4677f6ea22f132a006a200" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="GitBook 中的“操作”菜单图标"></picture>

   ，位于页面标题旁边。
2. 选择 **导出为 PDF > 当前页面**.
3. 等待页面加载完成，然后点击 **打印或另存为 PDF** 按钮，位于右上角，以打开浏览器的打印菜单。
4. 在这里，你可以按照浏览器的常规流程将页面保存为 PDF，或在 PDF 查看器中打开它。

#### 导出整个空间

1. 打开[ 操作菜单](/docs/documentation/zh/creating-content/content-structure.md)

   <picture><source srcset="/files/a86ca4c86a5cb7b88c4677f6ea22f132a006a200" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="GitBook 中的“操作”菜单图标"></picture>

   ，位于页面标题旁边，然后选择 **导出为 PDF > 所有页面**。或者，打开该空间的 **操作菜单**

   <picture><source srcset="/files/1835ea5734311ac1e4784fb04366122879e1c296" media="(prefers-color-scheme: dark)"><img src="/files/950d2c0e21d4aa4c603de07a2bc5d827c0d5cbde" alt="GitBook 中的“操作”菜单图标"></picture>

   于 [空间页眉](/docs/documentation/zh/zi-yuan/gitbook-ui.md#space-header) 并选择 **导出为 PDF** 在下拉菜单中。\
   \
   \&#xNAN;*注意：此操作在变更请求中不可用。*
2. 等待页面加载完成，然后点击 **打印或另存为 PDF** 按钮，位于右上角，以打开浏览器的打印菜单。
3. 在这里，你可以按照浏览器的常规流程将页面保存为 PDF，或在 PDF 查看器中打开它。


---

# 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://gitbook.com/docs/documentation/zh/docs-site/pdf-export.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.
