mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
fed930aa2d
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
---
|
||
title: "导出 PDF"
|
||
description: "将整个文档站点导出为带有可导航目录的单个 PDF 文件,便于离线阅读、分享和打印。"
|
||
keywords: ["PDF", "离线文档"]
|
||
---
|
||
|
||
export const DownloadPDFButton = () => {
|
||
return (
|
||
<a download="mintlify-example.pdf" href="/files/mint-full-docs.pdf" className="border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors w-fit text-sm font-medium flex items-center gap-2 rounded-lg px-3.5 py-1.5 not-prose">
|
||
<Icon icon="download" size={16} />
|
||
查看示例PDF
|
||
</a>
|
||
)
|
||
}
|
||
|
||
<Info>
|
||
PDF 导出功能适用于[企业方案](https://mintlify.com/pricing)。
|
||
</Info>
|
||
|
||
你可以将文档导出为单个 PDF 文件,便于离线查看。导出的 PDF 包含文档中的所有内容,包括图片和链接,并附带可导航的目录。
|
||
|
||
启用了认证的文档站点支持整站 PDF 导出。导出会包含文档中的所有页面,且不受用户分组限制的影响,因此任何获得该 PDF 的人都可以阅读原本可能受用户分组限制的内容。
|
||
|
||
<Tip>
|
||
如需让用户将单个页面下载为 PDF,请使用[上下文菜单](/zh/ai/contextual-menu)的 `download-pdf` 选项。单页 PDF 下载在公开站点和启用认证的文档站点上都可使用。
|
||
</Tip>
|
||
|
||
|
||
<div id="export-a-pdf">
|
||
## 导出 PDF
|
||
</div>
|
||
|
||
1. 在控制台的“项目设置”中,进入 [General](https://dashboard.mintlify.com/settings/deployment/general) 页面。
|
||
2. 点击 **Export all content** 按钮。
|
||
3. 根据需要自定义导出选项:
|
||
* **Page format**:选择 PDF 的页面大小。
|
||
* **Scale percentage**:调整 PDF 的缩放比例。
|
||
* **Include footer**:在页脚中包含当前页码与总页数。
|
||
4. 点击 **Export** 开始导出。
|
||
5. 导出完成后,您将收到一封包含下载链接的电子邮件。
|
||
6. 点击该链接下载 PDF 文件。
|
||
|
||
<DownloadPDFButton /> |