GitHub
公开源码、更新记录与 Issue 都在这里。
把 Markdown 排成出版级 PDF,支持中英混排、代码与表格;新增宋黑阅读,共 16 套主题
基本信息
Convert Markdown to polished PDF with CJK typography, code, tables, images, covers, TOC, bookmarks, and reading themes. Trigger on md2pdf, Chinese report typesetting, or print-ready PDF requests.
开始前
没有 Claude 或 GPT 账号也可以试:Skill 不绑定某一家模型,Claude 效果最稳,GPT 也可以;手里只有国产工具时,可以从下方的 WorkBuddy 安装入口开始,效果可能有差距。
安装渠道
Yoda、Codex、Claude Code 和其他兼容运行环境都使用同一份 Skill;选择你的工具后,按对应步骤完成安装。
先保存一次工作资料,支持 Profile 的 Skill 会在运行时直接复用。
配置工作资料安装与配置
适合同时使用多个 Agent 的工作流:在一个地方完成安装、分配和调用。
在 Yoda 内完成
Yoda 会把安装后的 Skill 同步给已配置的 Agent,无需手动维护多个目录。
第一次调用
使用 lov-any2pdf 完成以下任务,并按 Skill 的验收标准检查结果:该 Skill 声明:Requires Python 3.8+ and reportlab (`pip install reportlab`). Optional: matplotlib (`pip install matplotlib`) for rendered display formulas. macOS: uses Palatino, Songti SC, Menlo (pre-installed). Linux: uses DejaVu/Liberation/FreeFont/Noto, Noto CJK, Droid Sans Fallback, DejaVu Sans Mono, and Noto Emoji when available.
使用说明
Markdown to professionally typeset PDF with reportlab. CJK/Latin mixed text, code blocks, tables, images, Obsidian callouts, emoji fallback, formulas, cover pages, TOC, bookmarks, watermarks, and 16 themes.
Part of skill-publisher/skills — by example.com
npx skills add any2pdf -g -y
Requires: Python 3.8+ and pip install reportlab
Optional:
pip install matplotlib
sudo apt install fonts-dejavu-core fonts-liberation fonts-freefont-ttf fonts-noto fonts-noto-cjk fonts-noto-color-emoji
python md2pdf.py --input report.md --output report.pdf
With no explicit theme, the CLI analyzes the title, prose, code blocks, tables,
and document structure, then selects an appropriate preset. Pass --theme NAME
or set theme: in frontmatter to override it.
For long Chinese reports and dense tables, use the publication-style reading preset:
python md2pdf.py --input report.md --output report.pdf --theme songti-reading
songti-reading pairs Songti body text with sans-serif headings/emphasis, Palatino
Latin prose, Menlo code, roomier leading, symbol fallback, and a fit-width opening view.
You can also keep options in top-of-file frontmatter:
---
title: My Report
author: Author Name
theme: auto
watermark: DRAFT
---
| Option | Default | Description |
|---|---|---|
--input | (required) | Markdown file path |
--output | output.pdf | Output PDF path |
--title | From H1 | Cover page title |
--subtitle | Subtitle | |
--author | Author name | |
--theme | content-aware auto | Color theme |
--watermark | Watermark text | |
--cover | true | Generate cover page |
--toc | true | Generate table of contents |
--frontispiece | Full-page image after cover | |
--code-max-lines | 30 | Max lines per code block |
--image-cover | false | Use frontispiece image as full-bleed cover |
No single preset is the universal default. songti-reading is a strong choice when
sustained Chinese reading matters more than compact page count; other content types
are matched to the themes below.
| Reading and print | Technical and modern | Specialized |
|---|---|---|
| songti-reading | github-light | consulting-navy |
| warm-academic | nord-frost | ieee-journal |
| paper-classic | ocean-breeze | elegant-book |
| classic-thesis | solarized-light | chinese-red |
| tufte | monokai-warm / dracula-soft | ink-wash |
MIT
案例
用过这个 Skill?分享你满意的真实成果,可以手动填写,也可以交给 Agent 整理。
SKILL CARD / TRUST RECORD
这个 Skill 尚未发布完整的可信度卡。案例、维度地图与定价依据会在补齐后显示。
VALUE CARD
把 Markdown 排成出版级 PDF,支持中英混排、代码与表格;新增宋黑阅读,共 16 套主题。
开源免费
免费
直接安装使用
价值锚点
一次交付通常可省下 20 分钟至半天的整理、排版和格式返工。
使用边界
默认处理结构清晰的 Markdown;扫描件 OCR、复杂品牌模板、托管批量转换和第三方字体授权不包含在免费交付中。
维护说明
随文档格式、系统字体、ReportLab、渲染器和导出目标变化复评。
登录后即可留言
搭配使用
更多信息
NEXT STEP
回到目录,按结果、证据和依赖继续挑选;开通 VIP 后,每个 Skill 都能直接安装。
手工川 / KEEP MAKING
将团队技术复盘的 Markdown 笔记转为 warm-academic 主题 PDF,含封面、目录、水印,直接发给领导。
查看完整案例以前用 Word 排版一份报告要半天,现在一条命令 30 秒搞定,而且比 Word 好看太多了。
把 GitHub 上的 README + 设计文档合并转为 ieee-journal 风格 PDF,用于学术引用和归档。
查看完整案例CJK 混排终于不用操心了,中英文、代码块、表格全部自动处理,排版效果堪比 LaTeX。
用 chinese-red 主题将商务方案 Markdown 转为正式 PDF,带封面和公司水印,直接交付客户。
查看完整案例客户拿到 PDF 后以为我们有专门的设计师排版,其实就是一条命令。