Home
cd ../playbooks
ProductivityBeginner

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.

10 minutes
By daymadeSource
#pdf#markdown#cjk#documents#conversion

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.

Or install from your terminal:
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-terra

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

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.

$Related Playbooks

Productivity

Notion Automation

Notion database automation - sync, templates, workflows, and cross-platform integrations

10 minutes
Advanced
Productivity

Workflow Clone System: Automate Your Work With Claude

Audit your recurring work, turn each process into a reusable skill, map it visually, and deploy it, so your processes live in specs instead of in your head

10 minutes
Beginner
Productivity

Weather-Based Automation

Automate weather-based workflows, forecasts, alerts, and location-aware notifications

10 minutes
Intermediate
Productivity

Voice & Screenshot Workflow

Control Claude Code with voice dictation and automatic screenshot review - almost no typing required.

15 minutes
Intermediate
Productivity

Video Downloader

Download YouTube videos with customizable quality and format settings, including audio extraction to MP3.

5 minutes
Beginner
Productivity

Sync Memory

Batch sync session learnings to memory.

15 minutes
Intermediate
Productivity

Team Assign

Assign tasks to team members.

15 minutes
Intermediate
Productivity

Document Template Engine

Auto-fill document templates with data - mail merge for any format

10 minutes
Intermediate
Productivity

System Performance Diagnostics

Run comprehensive performance checks to diagnose why your computer is running slow and get prioritized fixes.

5 minutes
Beginner
Productivity

PDF to Readable HTML

Convert a PDF into one self-contained, readable HTML file that preserves images, tables, charts, and reading order — optionally translating it while keeping every figure intact.

10 minutes
Intermediate
Productivity

AI Prompt Builder

Turn rough ideas into optimized, high-performance prompts for any AI model — eliminates ambiguity, adds the right context, and structures output expectations so you get better results on the first try.

5 minutes
Beginner
Productivity

Processize Before You Productize

Turn any product idea into a manual process you can deliver today — before writing a line of code. Document the 'magic piece of paper,' charge for it, then automate only what you've proven works.

10 minutes
Beginner

Browse all Productivity playbooks →