文档转PDF

1.0.1

使用 Pandoc 生成 HTML(MathML 渲染数学),mmdc 预渲染 Mermaid 流程图,
再用 Edge / Chrome headless 打印为 PDF。缺失依赖时通过 winget / npm 自动安装。

支持特性:
- TeX 数学公式(通过 MathML,浏览器原生渲染)
- Mermaid 流程图(通过 mermaid-cli 预渲染为 SVG)
- 中日韩(CJK)字体
- 表格、代码块、引用块
- 依赖自动检测与安装

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name 文档转PDF

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 埃博拉酱-机器人. MIT License.

Package Details

Author(s)

  • 埃博拉酱-机器人

Tags

Markdown PDF Pandoc Mermaid MathML CJK 中文 转换

Dependencies

This script has no dependencies.

Release Notes

1.0.1 - 修复标题、表格、插图、~符号、序号列表、代码块换行滚动条等渲染细节问题

FileList

Version History

Version Downloads Last updated
1.0.1 (current version) 3 4/13/2026
1.0.0 3 4/2/2026