> 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/fa-bu/pdf-export.md).

# PDF 导出

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

要为访客启用或禁用 PDF 导出，请在你的 [已发布文档站点](/docs/documentation/zh/fa-bu/publish-a-docs-site.md)中，打开 **Customize**，在 **工具** 侧边栏中的，并导航到 **配置 → 页面操作**。在那里，你可以切换 **导出为 PDF** 的开关。

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

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

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

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

#### 导出单个页面

1. 打开你要导出的页面，然后打开该页面的 [操作菜单](/docs/documentation/zh/can-kao/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/chuang-jian-nei-rong/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/can-kao/gitbook-ui.md#space-header) 并选择 **导出为 PDF** 在下拉菜单中。\n\n\&#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/fa-bu/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.
