据 AlphaMoat 统计,截至 2026-09,Markdown to PDF (CJK) 累计下载 3,468 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,194 位,在「办公效率」分类(435 个)中排名第 240 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 84 | 2,610 | 1 | - |
| SkillHub ↗ | 152 | 3,468 | 1 | — |
各平台的计数口径不同,统计时间不一致。
主文说明支持标题、粗体/斜体、列表、表格、代码块和分页等元素;脚本会尝试检测常见位置的 CJK 字体。若未找到合适字体,会回退到 Helvetica,CJK 字符可能无法显示。运行前应确认 ReportLab 与字体配置,并检查生成 PDF 的实际排版。 需检查输入输出路径;系统级字体安装属于另行审查的主机变更。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 3,468 | — | 1 |
| 2026-08 | 2,834 | +12.1% | 1 |
| 2026-07 | 2,527 | +18.8% | 1 |
| 2026-06 | 2,127 | +10.4% | 1 |
| 2026-05 | 1,926 | — | 1 |
| 2026-03 | 1,169 | — | 1 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: md-to-pdf-cjk description: Convert Markdown files to professional PDF documents with full CJK (Chinese/Japanese/Korean) support. Uses reportlab for reliable rendering without external dependencies like wkhtmltopdf or LaTeX. author: zacjiang version: 1.0.0 tags: markdown, pdf, chinese, japanese, korean, CJK, convert, report, document --- # Markdown to PDF (CJK Support)
Convert Markdown to professional PDFs with full Chinese/Japanese/Korean text support.
## Why This Exists
Most Markdown-to-PDF tools break on CJK characters, require LaTeX, or need heavy dependencies. This skill uses reportlab for lightweight, reliable PDF generation that works on any server — including 2GB RAM VPS instances.
## Usage
```bash
python3 {baseDir}/scripts/md_to_pdf.py input.md "Document Title" output.pdf
```
## Features
- ✅ Full CJK text rendering (Chinese, Japanese, Korean)
- ✅ Markdown headings, bold, italic, bullet lists, code blocks
- ✅ Tables with proper column alignment
- ✅ Automatic page breaks and numbering
- ✅ Lightweight — runs on minimal servers (2GB RAM)
- ✅ No LaTeX, no wkhtmltopdf, no Chrome/Puppeteer needed
## Supported Markdown Elements
- `# H1` through `#### H4` headings
- `**bold**` and `*italic*`
- `- bullet lists` (nested supported)
- `| table | rows |` (pipe-delimited tables)
- `` `inline code` `` and ``` code blocks ```
- `---` horizontal rules
## Dependencies
```bash
pip3 install reportlab
```
## Font Configuration
The script auto-detects CJK fonts in common locations:
- `/usr/share/fonts/` (Linux)
- `/System/Library/Fonts/` (macOS)
If no CJK font is found, it falls back to Helvetica (CJK characters will not render). Install a CJK font:
```bash
# RHEL/CentOS/Alibaba Cloud Linux
sudo yum install -y google-noto-sans-cjk-ttc-fonts
# Ubuntu/Debian
sudo apt install -y fonts-noto-cjk
```
## Use Cases
- Generate PDF reports from AI analysis (audit reports, summaries)
- Convert documentation to distributable format
- Create invoices, proposals, or contracts in CJK languages
- Batch convert multiple Markdown files to PDF
通过 MCP 在腾讯文档里新建、编辑与管理在线文档的完整操作手册。
在保留公式、格式与工作簿结构的前提下创建、检查并修改 Excel 文件的技能。
处理 Word 与 DOCX 文档的作业规范,重点是改完之后样式、编号与版式不跑偏。
通过命令行访问 Gmail、日历、Drive、通讯录、Sheets 与 Docs。
PDF和图片文字提取 将文档文字、表格与扫描页识别整理为文本结果。
按主题与风格自动生成 PPT 文件的技能。
通过 kdocs-cli 操作金山文档云文档的官方技能。
用自然语言指令改 PDF 指定页的小工具。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。