aipptskill.

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 Skill

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 export
  • wechat-article-writer — write the Markdown article, render to PDF
  • anthropic-pdf — post-process the generated PDF

Install on GitHub

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