Skip to content

Markdown to PDF (CJK)

Verified

Convert Markdown files to professional PDF documents with full CJK (Chinese/Japanese/Korean) support. Uses reportlab for reliable rendering without external...

151 downloads
$ Add to .claude/skills/

About This Skill

# Markdown to PDF (CJK Support)

Convert Markdown to professional PDFs with full Chinese/Japanese/Korean text support.

Why This Exists

Most Markdown-to-PDF tools break on CJK characters, require LaTeX, or need heavy dependencies. This skill uses reportlab for lightweight, reliable PDF generation that works on any server — including 2GB RAM VPS instances.

Usage

```bash python3 {baseDir}/scripts/md_to_pdf.py input.md "Document Title" output.pdf ```

Features

  • ✅ Full CJK text rendering (Chinese, Japanese, Korean)
  • ✅ Markdown headings, bold, italic, bullet lists, code blocks
  • ✅ Tables with proper column alignment
  • ✅ Automatic page breaks and numbering
  • ✅ Lightweight — runs on minimal servers (2GB RAM)
  • ✅ No LaTeX, no wkhtmltopdf, no Chrome/Puppeteer needed

Supported Markdown Elements

  • `# H1` through `#### H4` headings
  • `bold` and `*italic*`
  • `- bullet lists` (nested supported)
  • `| table | rows |` (pipe-delimited tables)
  • `` `inline code` `` and ``` code blocks ```
  • `---` horizontal rules

Dependencies

```bash pip3 install reportlab ```

Font Configuration

  • The script auto-detects CJK fonts in common locations:
  • `/usr/share/fonts/` (Linux)
  • `/System/Library/Fonts/` (macOS)

If no CJK font is found, it falls back to Helvetica (CJK characters will not render). Install a CJK font:

```bash # RHEL/CentOS/Alibaba Cloud Linux sudo yum install -y google-noto-sans-cjk-ttc-fonts

# Ubuntu/Debian sudo apt install -y fonts-noto-cjk ```

Use Cases

  • Generate PDF reports from AI analysis (audit reports, summaries)
  • Convert documentation to distributable format
  • Create invoices, proposals, or contracts in CJK languages
  • Batch convert multiple Markdown files to PDF

Use Cases

  • Convert Markdown files to professional PDFs with full CJK character support
  • Generate PDF documents with Chinese, Japanese, and Korean text rendering
  • Create print-ready PDFs from Markdown without LaTeX or heavy dependencies
  • Build lightweight PDF generation pipelines using reportlab on minimal servers
  • Produce CJK-compatible PDF reports for multilingual documentation

Pros & Cons

Pros

  • +Compatible with multiple platforms including claude-code, openclaw
  • +Lightweight design with minimal setup requirements
  • +Well-documented with detailed usage instructions and examples
  • +Open source with permissive licensing

Cons

  • -No built-in analytics or usage metrics dashboard
  • -Configuration may require familiarity with documentation & writing concepts

FAQ

What does Markdown to PDF (CJK) do?
Convert Markdown files to professional PDF documents with full CJK (Chinese/Japanese/Korean) support. Uses reportlab for reliable rendering without external...
What platforms support Markdown to PDF (CJK)?
Markdown to PDF (CJK) is available on Claude Code, OpenClaw.
What are the use cases for Markdown to PDF (CJK)?
Convert Markdown files to professional PDFs with full CJK character support. Generate PDF documents with Chinese, Japanese, and Korean text rendering. Create print-ready PDFs from Markdown without LaTeX or heavy dependencies.

100+ free AI tools

Writing, PDF, image, and developer tools — all in your browser.

Next Step

Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.