mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
83476f17a8
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 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 将包含文档中的所有内容,包括图片和链接,并附带可导航的目录。
|
|
|
|
|
|
<div id="exporting-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 /> |