> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiIwNGYwMzRkZi1lNTk2LTQxNGItYmQ5ZS01NTBjZTgwMGVjYmUiLCJleHAiOjE3Nzg0OTM2NjMsImlhdCI6MTc3ODQ5MzM2M30.zercx5M2zMhnMWolqDhjVQIgbb-HadeC1RjhIk6zJSM
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# PDF 导出

> 从 Fern Dashboard 将您的文档站点导出为 PDF。

<Warning title="团队版和企业版功能">
  此功能仅适用于[团队版和企业版套餐](https://buildwithfern.com/pricing)。要开始使用，请联系 [support@buildwithfern.com](mailto:support@buildwithfern.com)。
</Warning>

直接从 [Fern Dashboard](https://dashboard.buildwithfern.com/) 将您的文档导出为 PDF。生成的 PDF 包含封面页、带有可点击链接的目录以及所有带有页眉和页脚的内容页面。

## 导出您的文档

<Steps>
  <Step title="打开 Dashboard">
    在 [Fern Dashboard](https://dashboard.buildwithfern.com/) 中，导航到 **概述** 选项卡。点击右上角的 **⋮**（垂直省略号）菜单，然后选择 **导出为 PDF**。

    <Frame>
      <video src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/288a4e35737b7612ebc6df95ec7255c191083d7660005e2d511275be91f690f2/products/dashboard/assets/pdf-export.mp4" poster="../assets/pdf-ui.png" autoPlay loop playsInline muted />
    </Frame>
  </Step>

  <Step title="自定义导出设置">
    自定义您的 PDF：

    * **产品和/或版本**：如果您的站点有[产品](/learn/docs/configuration/products)或[版本](/learn/docs/configuration/versions)，请选择要导出的产品和/或版本。您一次只能导出一个产品的一个版本。
    * **封面标题和副标题**：默认为您的 Fern Docs 站点标题和副标题。您可以自定义或隐藏这些内容。
    * **封面页脚**：切换封面页上的"Generated by Fern"页脚。
    * **页眉和页脚**：使用模板在每个内容页面的顶部或底部添加文本，支持 `{pageIndex}` 和 `{totalPages}` 占位符。自定义位置（右侧或左侧）。
  </Step>

  <Step title="导出">
    选择 **导出为 PDF** 开始导出。大型站点可能需要几分钟时间——您可以安全地关闭页面。导出完成后您将收到邮件通知。
  </Step>

  <Step title="下载">
    导出完成后，点击 **打开** 下载 PDF。您还可以查看过往的 PDF 导出记录。
  </Step>
</Steps>

## 示例

<Tabs>
  <Tab title="Cohere (v2)">
    该站点使用**版本**但没有产品。导出涵盖单个版本。
    [查看在线站点](https://docs.cohere.com/)

    <iframe src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/b0a0000eb5b812d036dd5e223657756c0cfbbd5832f537bc2e14294d9931cf42/products/dashboard/assets/cohere-export.pdf" width="100%" height="700px" />
  </Tab>

  <Tab title="Payabli (完整站点)">
    该站点**没有版本或产品**，因此导出涵盖整个站点。
    [查看在线站点](https://buildwithfern.com/learn/docs/getting-started/overview)

    <iframe src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/fb58141739d830610e6d1785e003c1938b7dbcb35c90ba88e1c1a762142c6098/products/dashboard/assets/payabli-export.pdf" width="100%" height="700px" />
  </Tab>

  <Tab title="Fern (Docs 产品)">
    该站点使用**产品**但没有版本。导出涵盖单个产品。
    [查看在线站点](https://buildwithfern.com/learn/docs/getting-started/overview)

    <iframe src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/6445a8f8ec9191c9039a2a77f14758b209fa57c025bccde38476cc78b9a24ea3/products/dashboard/assets/fern-docs-export.pdf" width="100%" height="700px" />
  </Tab>
</Tabs>