Office AutomationFreev1.2.0
npx skills add lovstudio/any2pdf-skilllovstudio:any2pdf
Markdown to professionally typeset PDF with reportlab. CJK/Latin mixed text, code blocks, tables, cover pages, TOC, bookmarks, watermarks, and 14 color themes.
Part of lovstudio/skills — by lovstudio.ai
Install
npx skills add lovstudio/skills --skill lovstudio:any2pdf
Requires: Python 3.8+ and pip install reportlab
Usage
python md2pdf.py --input report.md --output report.pdf --theme warm-academic
| 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 | warm-academic | Color theme |
--watermark | Watermark text | |
--cover | true | Generate cover page |
--toc | true | Generate table of contents |
--frontispiece | Full-page image after cover |
Themes
| warm-academic | nord-frost | github-light | solarized-light |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
| paper-classic | ocean-breeze | tufte | classic-thesis |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
| ieee-journal | elegant-book | chinese-red | ink-wash |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
| monokai-warm | dracula-soft |
|---|---|
![]() | ![]() |
License
MIT
Use Cases
季度技术复盘报告
将团队技术复盘的 Markdown 笔记转为 warm-academic 主题 PDF,含封面、目录、水印,直接发给领导。
以前用 Word 排版一份报告要半天,现在一条命令 30 秒搞定,而且比 Word 好看太多了。
开源项目文档 PDF 化
把 GitHub 上的 README + 设计文档合并转为 ieee-journal 风格 PDF,用于学术引用和归档。
CJK 混排终于不用操心了,中英文、代码块、表格全部自动处理,排版效果堪比 LaTeX。
客户方案 PDF 交付
用 chinese-red 主题将商务方案 Markdown 转为正式 PDF,带封面和公司水印,直接交付客户。
客户拿到 PDF 后以为我们有专门的设计师排版,其实就是一条命令。
markdownpdfcjkreportlabtypesetting













