PDF Creator Skill
Generate professional PDFs from Markdown using WeasyPrint — full Chinese font support, long-document layout, tables, code blocks. By @daymade.
By daymade
Source: github.com
Install
npx degit daymade/claude-code-skills/pdf-creator ~/.claude/skills/pdf-creator pdf-creator solves a sharp pain point: generating PDFs with proper
Chinese (or any CJK) font rendering. WeasyPrint handles HTML/CSS-driven
layout much better than most pandoc-based pipelines, and this skill wraps
it with sensible defaults.
What it gets right
- CJK font support — pre-configured font fallback so Chinese, Japanese, Korean text renders without missing glyphs
- Markdown-driven — write in Markdown, get a print-ready PDF
- Long-document handling — table of contents, page numbers, footnotes
- Code blocks with syntax highlighting — preserved in the PDF
- Tables — styled, paginate-aware
- Print CSS aware — page breaks where you put them
Where it shines
- Research notes with mixed Chinese / English / code
- Academic papers that need print-quality layout
- Internal reports distributed as PDF
- Long documentation exports — README → PDF for archive
Differentiation
vs anthropic/pdf — that one manipulates existing PDFs (read, merge, watermark). This one generates new PDFs from Markdown with a focus on typography.
Composes with
mermaid-tools— pre-render diagrams to PNG so they survive the PDF exportwechat-article-writer— write the Markdown article, render to PDFanthropic-pdf— post-process the generated PDF
Example prompt
Use pdf-creator to render this Markdown research note (with Chinese
body text and English code blocks) into a print-ready A4 PDF. Use a
serif body font and ensure CJK glyphs render correctly.
Related skills
Anthropic DOCX Skill
Create, read, edit, and analyze Word documents — table of contents, headings, page numbers, letterheads, tracked changes, comments, image insertion. The full .docx toolkit.
Anthropic PDF Skill
Full-stack PDF — read, write, merge, split, watermark, encrypt, fill forms, OCR. The Swiss army knife for anything .pdf-shaped.
Anthropic XLSX Skill
Open, read, edit, and create spreadsheets — .xlsx, .xlsm, .csv, .tsv. Formulas, formatting, charts, and cleaning messy tabular data.