Shihao Jiang (Zac)

Markdown to PDF (CJK)

Officev1.0.0
By Shihao Jiang (Zac)Updated 2026-05-11md-to-pdf-cjk@clawhub_zacjiang/md-to-pdf-cjk
DocumentsPDF#PDF#Cjk#Chinese#Convert#Japanese

According to AlphaMoat, as of 2026-09, Markdown to PDF (CJK) has 3,468 downloads and 1 stars — ranked #3,194 of 5,078 AI skills overall, and #240 of 435 in Office.

Installs
152
Downloads
3.5K
Stars
1
Overall Rank
#3,194
Top 63% overall · Top 56% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗842.6K1-
SkillHub ↗1523.5K1—

Platforms count differently and update at different times.

What this skill does

The source says it supports headings, bold and italic text, lists, tables, code blocks, and page breaks. The script attempts to detect CJK fonts in common locations. If no suitable font is found, it falls back to Helvetica and CJK characters may not render. Confirm ReportLab and font configuration first, then inspect the generated PDF layout. Review input and output paths; system-wide font installation is a separate host change.

Profile published 2026-10-29

What you can do with it

  • Convert a Markdown document into a shareable PDF
  • Produce reports containing CJK text, tables, or code blocks
  • Check fonts and page layout before batch conversion

When to use it

  • When exporting a Markdown report or document to PDF
  • When ReportLab and a usable CJK font are available in the target environment

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Convert this Markdown file to PDF and check whether CJK text, tables, and code blocks render correctly; do not overwrite the source file.

Monthly Trend

Downloads3.5K
9852.3K3.7K2026-03 · Downloads 1.2K2026-05 · Downloads 1.9K2026-06 · Downloads 2.1K2026-07 · Downloads 2.5K2026-08 · Downloads 2.8K2026-09 · Downloads 3.5K26-0326-09
Stars1
0122026-03 · Stars 12026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.5K—1
2026-082.8K+12.1%1
2026-072.5K+18.8%1
2026-062.1K+10.4%1
2026-051.9K—1
2026-031.2K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.0 KB · ClawHub v1.0.0
---
name: md-to-pdf-cjk
description: Convert Markdown files to professional PDF documents with full CJK (Chinese/Japanese/Korean) support. Uses reportlab for reliable rendering without external dependencies like wkhtmltopdf or LaTeX.
author: zacjiang
version: 1.0.0
tags: markdown, pdf, chinese, japanese, korean, CJK, convert, report, document
---

# Markdown to PDF (CJK Support)
Show all (69 lines)
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

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.