mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
e7fbece5b6
* docs: document page selection option for PDF exports * update exports link * add second procedure * spanish * french * chinese --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
58 lines
2.5 KiB
Plaintext
58 lines
2.5 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` 选项。
|
||
</Tip>
|
||
|
||
<div id="export-all-content">
|
||
## 导出全部内容
|
||
</div>
|
||
|
||
1. 在控制台中进入 [Exports](https://app.mintlify.com/settings/deployment/export-docs) 页面。
|
||
2. 点击 **Export all content**。
|
||
3. 根据需要自定义导出选项:
|
||
- **Page format**:选择 PDF 的页面大小。
|
||
- **Scale percent**:调整 PDF 的缩放比例。
|
||
- **Include footer**:在页脚中包含当前页码与总页数。
|
||
- **Language**:如果你的内容支持多种语言,选择要导出的语言。
|
||
4. 点击 **Export**。
|
||
5. 导出完成后,Mintlify 会向你发送一封包含 PDF 文件下载链接的电子邮件。
|
||
|
||
<DownloadPDFButton />
|
||
|
||
<div id="export-select-pages">
|
||
## 导出指定页面
|
||
</div>
|
||
|
||
1. 在控制台中进入 [Exports](https://app.mintlify.com/settings/deployment/export-docs) 页面。
|
||
2. 点击 **New export**。
|
||
3. 选择你想要导出的页面。
|
||
4. 根据需要自定义导出选项:
|
||
- **Page format**:选择 PDF 的页面大小。
|
||
- **Scale percent**:调整 PDF 的缩放比例。
|
||
- **Include footer**:在页脚中包含当前页码与总页数。
|
||
- **Language**:如果你的内容支持多种语言,选择要导出的语言。
|
||
5. 点击 **Export**。
|
||
6. 导出完成后,Mintlify 会向你发送一封包含 PDF 文件下载链接的电子邮件。
|