Markdown to PDF (CJK)
/install md-to-pdf-cjk
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
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
# H1through#### H4headings**bold**and*italic*- bullet lists(nested supported)| table | rows |(pipe-delimited tables)`inline code`andcode blocks---horizontal rules
Dependencies
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:
# 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install md-to-pdf-cjk - 安装完成后,直接呼叫该 Skill 的名称或使用
/md-to-pdf-cjk触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Markdown to PDF (CJK) 是什么?
Convert Markdown files to professional PDF documents with full CJK (Chinese/Japanese/Korean) support. Uses reportlab for reliable rendering without external... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1307 次。
如何安装 Markdown to PDF (CJK)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install md-to-pdf-cjk」即可一键安装,无需额外配置。
Markdown to PDF (CJK) 是免费的吗?
是的,Markdown to PDF (CJK) 完全免费(开源免费),可自由下载、安装和使用。
Markdown to PDF (CJK) 支持哪些平台?
Markdown to PDF (CJK) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Markdown to PDF (CJK)?
由 Shihao Jiang (Zac)(@zacjiang)开发并维护,当前版本 v1.0.0。