productivity/md-to-pdf/SKILL.md
Use this skill when users want to convert Markdown files to PDF. Handles workflows like "Convert this markdown to PDF", "转换为PDF", "批量转换MD文件". Supports single file and batch directory conversion with excellent CJK (Chinese) font support, image embedding, and clean typography.
npx skillsauth add Jst-Well-Dan/Skill-Box md-to-pdfInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert Markdown files to beautifully formatted PDF documents with full CJK (Chinese/Japanese/Korean) font support.
pip install reportlab markdown beautifulsoup4 html5lib tqdm
# Auto-generates output name (same name with .pdf extension)
python scripts/md_to_pdf.py article.md
# Custom output name
python scripts/md_to_pdf.py article.md --output custom_name.pdf
python scripts/md_to_pdf.py ./articles_folder --concurrency 4
When user requests Markdown to PDF conversion:
Identify input:
Execute conversion:
# Single file
python scripts/md_to_pdf.py <markdown_file> [--output output.pdf]
# Batch directory
python scripts/md_to_pdf.py <directory> [--concurrency 4]
Report results:
# User: "把这个markdown转成PDF"
python scripts/md_to_pdf.py article.md
# Result:
# ✅ Output: article.pdf (128.5 KB)
# User: "批量转换这个文件夹里的所有markdown"
python scripts/md_to_pdf.py ./articles --concurrency 4
# Result:
# ✅ Success: 15 files
# ❌ Failed: 0 files
# 📦 Total size: 2.35 MB
| Issue | Solution |
|-------|----------|
| PDF conversion failed | Install: pip install reportlab markdown beautifulsoup4 |
| Chinese characters garbled | Microsoft YaHei font is auto-detected; ensure Windows fonts are available |
| Images missing in PDF | Check that image URLs are accessible or local paths are correct |
| PDF too large | Images are embedded at original resolution; consider pre-compressing images |
tools
Extract frames or short clips from videos using ffmpeg.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
development
Best practices for Remotion - Video creation in React