Loading...
Loading...
Create PDF documents from markdown with proper Chinese font support using weasyprint. This skill should be used when converting markdown to PDF, generating formal documents (legal, trademark filings, reports), or when Chinese typography is required. Triggers include "convert to PDF", "generate PDF", "markdown to PDF", or any request for creating printable documents.
npx skill4agent add daymade/claude-code-skills pdf-creatoruv run --with weasyprint --with markdown scripts/md_to_pdf.py input.md output.pdfuv run --with weasyprint --with markdown scripts/batch_convert.py *.md --output-dir ./pdfsexport DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"| Font Type | Primary | Fallbacks |
|---|---|---|
| Body text | Songti SC | SimSun, STSong, Noto Serif CJK SC |
| Headings | Heiti SC | SimHei, STHeiti, Noto Sans CJK SC |
weasyprintuv run --with weasyprint --with markdown