Back to Skills
Office AutomationFreev1.2.0
npx skills add lovstudio/any2pdf-skill

lovstudio:any2pdf

Version

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
OptionDefaultDescription
--input(required)Markdown file path
--outputoutput.pdfOutput PDF path
--titleFrom H1Cover page title
--subtitleSubtitle
--authorAuthor name
--themewarm-academicColor theme
--watermarkWatermark text
--covertrueGenerate cover page
--toctrueGenerate table of contents
--frontispieceFull-page image after cover

Themes

warm-academicnord-frostgithub-lightsolarized-light
warm-academicnord-frostgithub-lightsolarized-light
paper-classicocean-breezetufteclassic-thesis
paper-classicocean-breezetufteclassic-thesis
ieee-journalelegant-bookchinese-redink-wash
ieee-journalelegant-bookchinese-redink-wash
monokai-warmdracula-soft
monokai-warmdracula-soft

License

MIT

Use Cases

季度技术复盘报告

将团队技术复盘的 Markdown 笔记转为 warm-academic 主题 PDF,含封面、目录、水印,直接发给领导。

以前用 Word 排版一份报告要半天,现在一条命令 30 秒搞定,而且比 Word 好看太多了。

赵工 · 技术主管

开源项目文档 PDF 化

把 GitHub 上的 README + 设计文档合并转为 ieee-journal 风格 PDF,用于学术引用和归档。

CJK 混排终于不用操心了,中英文、代码块、表格全部自动处理,排版效果堪比 LaTeX。

Mike · 开源作者

客户方案 PDF 交付

用 chinese-red 主题将商务方案 Markdown 转为正式 PDF,带封面和公司水印,直接交付客户。

客户拿到 PDF 后以为我们有专门的设计师排版,其实就是一条命令。

林总 · 咨询公司
markdownpdfcjkreportlabtypesetting