返回 Skills 目录
LovStudio Skill / Office Automation·FREE · OPEN SOURCE

万物转 PDF

把 Markdown 排成出版级 PDF,中英混排、代码块、表格全支持,内置 14 套主题

Convert Markdown documents to professionally typeset PDF files. Primary engine: reportlab (cover pages, frontispiece, back cover, bookmarks). Fallback engine: pandoc + XeLaTeX (better table handling, LaTeX-quality typesetting). Handles CJK/Latin mixed text, fenced code blocks, tables, blockquotes, Obsidian callouts, inline images, emoji fallback, LaTeX-style formulas, clickable TOC, watermarks, headers/footers, and page numbers. Supports multiple color themes and is battle-tested for Chinese technical reports. Trigger when user mentions "markdown to PDF", "md2pdf", "any2pdf", "md转pdf", "报告生成", "导出pdf", or wants a professionally formatted PDF from markdown.

发布者
LovStudio
版本
仓库为准
公开证据
3 项
关系
2
01 / 适合你吗

适合

需要把现有内容变成规范文件

不太适合

源文件损坏或关键内容缺失

02 / 效果与证据

它在真实任务里表现如何?

这里只展示技能仓库公开提供的案例、证言和相关文章。案例证言不会被冒充为已验证购买评论。

CASE 01

季度技术复盘报告

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

以前用 Word 排版一份报告要半天,现在一条命令 30 秒搞定,而且比 Word 好看太多了。
赵工 · 技术主管
CASE 02

开源项目文档 PDF 化

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

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

客户方案 PDF 交付

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

客户拿到 PDF 后以为我们有专门的设计师排版,其实就是一条命令。
林总 · 咨询公司
03 / 对比与组合

它与其他能力是什么关系?

选择适合需要承担
临时 Prompt任务简单、只做一次自己补步骤、工具和验收
万物转 PDF希望复用 LovStudio 已整理的完整工作流提供真实输入,并复核最终结果

LovStudio 暂未为此 Skill 发布可复现的知名同类横评,因此不展示没有来源的“更强”结论。下方仅呈现目录中真实声明的依赖与关联能力。

04 / 安装与使用

从安装到第一次交付

  1. 01

    确认运行环境

    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.

  2. 02

    安装并授权

    复制下方命令,在项目终端执行。

  3. 03

    带真实任务调用

    告诉 Agent 使用 any2pdf,提供输入、目标和交付格式。

npx skills add lovstudio/general-skills --skill any2pdf

完整操作手册

Version

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 14 color themes.

Part of lovstudio/skills — by lovstudio.ai

Install

npx lovstudio 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

Usage

python md2pdf.py --input report.md --output report.pdf --theme warm-academic

You can also keep options in top-of-file frontmatter:

---
title: My Report
author: Author Name
theme: warm-academic
watermark: DRAFT
---
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
--code-max-lines30Max lines per code block
--image-coverfalseUse frontispiece image as full-bleed 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

05 / 边界与信任

安装前还应该知道什么?

源码可见性
公开仓库,可检查源码、Issue 与更新记录。
兼容性
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.
数据与权限
不同 Skill 可能读取本地文件、访问网络或调用第三方模型。执行前请检查完整手册中的具体步骤与命令。
许可
MIT

NEXT STEP

继续比较,再决定。

回到目录,从结果、证据、依赖和价格选择最合适的工作流。

浏览全部 Skills