# 将主题打印为 PDF

**URL:** <https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061>\
**Category:** Using Discourse\
**Tags:** how-to, interface\
**Created:** [2020年八月6日 17:56 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061 "2020-08-06T17:56:46Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [2025年五月8日 05:59 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/35 "2025-05-08T05:59:32Z")

</div>

我尝试使用 `html2pdf` 库将其转换为 PDF，但虽然它保留了帖子的外观，但一些样式和大多数图标却消失了。

> **[GitHub - NateDhaliwal/Discourse-HTML-to-PDF](https://github.com/NateDhaliwal/Discourse-HTML-to-PDF)**
>
> Contribute to NateDhaliwal/Discourse-HTML-to-PDF development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Jannet](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@Jannet](https://meta.discourse.org/u/Jannet)\
**Post date:** [2025年五月15日 16:01 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/36 "2025-05-15T16:01:50Z")

</div>

如何下载此帖子

---

<div class="post-metadata">

**Author:** ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)\
**Post date:** [2025年五月15日 18:53 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/37 "2025-05-15T18:53:56Z")

</div>

按 Ctrl+P 或 Command+P，然后保存/打印为 PDF。

---

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [2025年六月30日 09:02 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/38 "2025-06-30T09:02:15Z")

</div>

是否有办法在主题打印件中包含MathJax？

---

<div class="post-metadata">

**Author:** ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)\
**Post date:** [2025年九月18日 14:04 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/39 "2025-09-18T14:04:33Z")

</div>

> [@tshenry](#):
>
> [GitHub - discourse/clean-export](https://github.com/discourse/clean-export) （在帖子管理控件中添加一个按钮，用于打印特定帖子。看起来仅限于 TL4 和员工。移动版和桌面版）

是否有任何技术限制可以将其扩展到 TL0？

我们对较长内容使用目录，因此在大多数情况下，可打印主题不会显示按钮。

---

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [2025年十二月16日 05:41 UTC](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061/40 "2025-12-16T05:41:21Z")

</div>

## 我找到了一个很棒的工具，可能需要稍微修改一下

> **[GitHub - simov/markdown-viewer: Markdown Viewer / Browser Extension](https://github.com/simov/markdown-viewer)**
>
> Markdown Viewer / Browser Extension

我看到这个工具可以将“\*.md”文件转换为完美的Word文件。

我认为这个工具可以让我们轻松地将Discourse中的主题更改为完美的Word文件。

[上一頁](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061.md?page=1)
