pdf-creator by daymade/claude-code-skills
npx skills add https://github.com/daymade/claude-code-skills --skill pdf-creator使用 Markdown 创建专业的 PDF 文档,并提供完善的中文字体支持。
转换单个 Markdown 文件:
cd /Users/tiansheng/Workspace/python/claude-code-skills/pdf-creator
uv run --with weasyprint --with markdown scripts/md_to_pdf.py input.md output.pdf
批量转换多个文件:
uv run --with weasyprint --with markdown scripts/batch_convert.py *.md --output-dir ./pdfs
macOS ARM (Homebrew) 的 DYLD_LIBRARY_PATH 会自动检测配置,无需手动设置。
脚本使用以下中文字体(包含备用字体):
| 字体类型 | 主要字体 | 备用字体 |
|---|---|---|
| 正文 | Songti SC | SimSun, STSong, Noto Serif CJK SC |
| 标题 | Heiti SC | SimHei, STHeiti, Noto Sans CJK SC |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
问题 : 中文字符显示为方框 解决方案 : 确保系统已安装 Songti SC 或其他中文字体
问题 : weasyprint 导入错误 解决方案 : 使用 uv run --with weasyprint --with markdown 运行以确保依赖项
每周安装数
171
代码仓库
GitHub 星标数
637
首次出现
2026年1月21日
安全审计
安装于
opencode136
gemini-cli127
codex123
claude-code123
github-copilot111
cursor109
Create professional PDF documents from markdown with proper Chinese font support.
Convert a single markdown file:
cd /Users/tiansheng/Workspace/python/claude-code-skills/pdf-creator
uv run --with weasyprint --with markdown scripts/md_to_pdf.py input.md output.pdf
Batch convert multiple files:
uv run --with weasyprint --with markdown scripts/batch_convert.py *.md --output-dir ./pdfs
macOS ARM (Homebrew) 的 DYLD_LIBRARY_PATH 会自动检测配置,无需手动设置。
The scripts use these Chinese fonts (with fallbacks):
| Font Type | Primary | Fallbacks |
|---|---|---|
| Body text | Songti SC | SimSun, STSong, Noto Serif CJK SC |
| Headings | Heiti SC | SimHei, STHeiti, Noto Sans CJK SC |
Problem : Chinese characters display as boxes Solution : Ensure Songti SC or other Chinese fonts are installed on the system
Problem : weasyprint import error Solution : Run with uv run --with weasyprint --with markdown to ensure dependencies
Weekly Installs
171
Repository
GitHub Stars
637
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode136
gemini-cli127
codex123
claude-code123
github-copilot111
cursor109
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
27,400 周安装