md-to-pdf

Convert Markdown files to PDF with CJK font support via pure-Python workflow.

12|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/taiki-yoshida/claude-code-skills --skill md-to-pdf-taiki-yoshida
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-pdf
Source: https://github.com/taiki-yoshida/claude-code-skills/tree/main/md-to-pdf
Command: npx skills add https://github.com/taiki-yoshida/claude-code-skills --skill md-to-pdf-taiki-yoshida

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, fpdf2, and includes scripts (resource) components.

What problem does it solve?

This tool converts Markdown documents into well-formatted PDF files, with robust CJK font support for Japanese, Chinese, and Korean text, enabling reliable sharing and printing across languages.

Core Features & Use Cases

  • Pure-Python rendering without LaTeX or Pandoc, suitable for cross-platform environments.
  • Auto-detects CJK content and selects appropriate system fonts to ensure legible output.
  • Batch convert all .md files in a directory, with configurable page size and margins for flexible document layouts.

Quick Start

Run the included script to convert input.md to output.pdf.

Frequently Asked Questions about md-to-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to PDF with Chinese, Japanese, or Korean text support?

This Skill relies on the markdown and fpdf2 Python packages to render and format the output, supporting tables, code blocks, and multilingual content for portable documentation.

What's the best way to batch convert Markdown files to PDF without using Pandoc?

Batch converting Markdown files to PDF without Pandoc is possible via a pure-Python workflow that processes all .md files in a directory, offering configurable page sizes and margins for flexible layouts.

Does this Markdown to PDF converter require LaTeX to run?

It handles single-file and batch conversions of Markdown documents, producing portable PDFs for documentation or reports without heavy external dependencies.

Can I adjust page size and margins when converting Markdown to PDF?

Yes, you can adjust page size and margins when converting Markdown to PDF. The tool supports configurable document layouts to ensure flexible formatting for your documentation or reports.

Why does my Markdown to PDF output show missing characters for CJK text?

Missing CJK characters often occur due to incorrect font detection. This tool auto-detects CJK content and selects appropriate system fonts to ensure Japanese, Chinese, and Korean text render legibly in the PDF.