pdf-creator
Installation
SKILL.md
PDF Creator
Create professional PDF documents from markdown with Chinese font support and theme system.
For an existing .docx source, use docx-creator/references/word-to-pdf.md instead.
Choose by the authoritative input as well as the output suffix.
Quick Start
Every scripts/… path below is relative to this skill's own directory — run the commands from there, or substitute the absolute path. Running them from the directory holding your markdown fails with Failed to spawn: 'scripts/md_to_pdf.py'. Omitting the output path is allowed and derives it from the input's basename (input.md → input.pdf, in the input's directory).
# Default theme (formal: Songti SC + black/grey, A4 print)
uv run --with weasyprint scripts/md_to_pdf.py input.md output.pdf
# Warm theme (training: PingFang SC + terra cotta)
uv run --with weasyprint scripts/md_to_pdf.py input.md --theme warm-terra