> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/docs-site/pdf-export.md).

# PDF 导出

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

{% hint style="info" %}
此功能适用于 [高级和终极站点方案](https://www.gitbook.com/pricing).
{% endhint %}

要为访问你的 [已发布文档站点](/docs/documentation/zh/docs-site/publish-a-docs-site.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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/docs-site/pdf-export.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
