PDF Creator
Convert markdown to professional PDFs with proper Chinese font support, a theme system, and mandatory visual self-check — handling CJK typography and Chrome header/footer suppression that manual pandoc misses.
Converting markdown to PDF by hand produces broken CJK spacing and stray Chrome headers. This playbook handles the typography and visually verifies the result before you ship it.
Who it's for: writers, researchers, students, professionals
Example
"Turn this markdown report into a clean PDF" → A professionally formatted PDF with correct CJK typography, themed styling, and a visual self-check
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add pdf-creator# PDF Creator
Create professional PDF documents from markdown with Chinese font support and theme system.
## Quick Start
```bash
# 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-terraGet new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Convert markdown to professional PDFs with proper Chinese font support, a theme system, and mandatory visual self-check — handling CJK typography and Chrome header/footer suppression that manual pandoc misses.
What's Inside
The template covers:
- Themes
- Print vs Mobile: Choose the Right Theme
- Backends
- Batch Convert
- Anti-Pattern: Do NOT Manually Invoke pandoc + Chrome
- Troubleshooting
Quick Start
Step 1: Create a Project Folder
Make a dedicated folder for this workflow and open it in Claude Code.
Step 2: Download the Template
Click Download above to save the template, then drop it into your project as CLAUDE.md (or paste it into your existing one).
Step 3: Start Working
Tell Claude what you need in plain language — it will follow the template's workflow automatically. For example:
Turn this markdown report into a clean PDF
Claude reads the template and runs the steps for you.