PDF Creator

Turns Markdown into print-ready or phone-friendly PDFs with proper Chinese typography, a choice of themes and a page-by-page visual check.

Office & Documentspdfmarkdownchineseprintingby daymade1.5kGitHub

What it is

PDF Creator converts Markdown files into finished PDF documents, with special care for Chinese text. It is for anyone who writes in Markdown and needs a handout, training guide, contract or course outline to print on A4, or to send to someone who will read it on a phone, for example over WeChat. It can also help turn a manufacturer's PDF manual into a short illustrated guide in Chinese. Many of its rules and examples are written with Chinese documents in mind.

Rather than letting the agent improvise with pandoc and a browser, it runs a bundled Python script with five themes: default for formal print, cjk-auto for uneven tables, warm-terra and warm-terra-menu for training material, and mobile for phones. It picks the rendering engine, WeasyPrint or headless Chrome, according to the theme's fonts, so Chinese text does not turn into blanks in Preview or Adobe Reader. It stops Chinese words splitting badly in table cells and warns about orphaned characters and broken brackets.

After every PDF it renders each page as an image, and the agent must look at them before handing the file over; a separate checker confirms that table borders were not silently cut off. Whole folders can be converted in one batch. It does not convert Word or WPS files. In Claude Code you start it by name rather than it switching on automatically.

What it can do

  • Converts Markdown to PDF with five built-in themes for formal print, training material and phone reading.
  • Chooses WeasyPrint or Chrome automatically so Chinese fonts display correctly in common PDF readers.
  • Keeps Chinese words from breaking mid-word in tables without editing your Markdown.
  • Renders every page to an image for a visual check and flags awkward Chinese line breaks.
  • Detects table borders that Chrome silently cut off at the page edge.
  • Batch-converts a folder of Markdown files with one theme.
  • Helps rework a manufacturer's PDF manual into a short illustrated Chinese guide.

When to use it

  • You wrote a training course outline in Markdown and need a printable A4 PDF for tomorrow's session.
  • You want to send a Chinese how-to guide over WeChat that is comfortable to read on a phone.
  • You have twenty Markdown notes to turn into PDFs that all share the same look.
  • Your last PDF export showed Chinese characters as boxes and you need one that opens cleanly everywhere.

How it works

  1. 1You start the skill and name your Markdown file; it picks a theme from the content, or asks whether you need a phone version.
  2. 2Its script converts the Markdown to HTML with pandoc, adds Chinese typography rules and renders the PDF with WeasyPrint or Chrome.
  3. 3It saves page previews to a temporary folder and prints a checklist plus any Chinese layout warnings.
  4. 4The agent reads each page image, fixes the Markdown if something looks wrong, and reruns the conversion.
  5. 5If the document has tables, it runs the border check before delivering the PDF.

Try asking

“Turn this Markdown training outline into a printable PDF with the warm-terra theme.”
“Make a phone-friendly PDF of this guide that I can send on WeChat.”
“Convert all the Markdown files in this folder to PDFs.”
“Create an A4 PDF from notes.md with proper Chinese fonts.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-docs/pdf-creator
pnpm
pnpm dlx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-docs/pdf-creator

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add daymade/claude-code-skills
/plugin install daymade-docs@daymade-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the pdf-creator folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/daymade/claude-code-skills.git
mkdir -p ~/.claude/skills
cp -r claude-code-skills/daymade-docs/pdf-creator ~/.claude/skills/pdf-creator

Then just ask in plain language, for example: “Turn this Markdown training outline into a printable PDF with the warm-terra theme.”