Doc2slides
/install doc2slides
Doc2Slides
把 PDF、Word、Markdown 一键变成设计师级 PPT。10 秒出稿,无需设计能力。
📄 论文答辩 / 📊 周报月报 / 📋 技术文档培训 / 💡 创业路演
# Install & setup
clawhub install doc2slides
bash ~/.openclaw/workspace/skills/doc2slides/setup.sh
# Go
python3 workflow.py --input report.pdf --output report.pptx
Done. 一行命令,PPT 生成在本地。
Why doc2slides?
| doc2slides | 模板方案 | AI 在线服务 | |
|---|---|---|---|
| 排版 | 18 种布局 AI 自动匹配 | 固定 2-3 种 | 有限 |
| 图表 | 内置 SVG 饼图/柱状/进度环 | 手动插入 | 依赖模板 |
| 隐私 | 默认本地,可选 LLM | 本地 | 上传云端 |
| 费用 | 免费 | 免费 | 按次收费 |
| 画质 | 3x 高清 (3840×2160) | 标清 | 取决于套餐 |
| AI | GPT-4o / 智谱 / DeepSeek 可选 | 无 | 固定模型 |
Use Cases
- 论文答辩 — 把论文 PDF 变成答辩 PPT,自动提炼要点
- 周报月报 — Markdown 周报一键幻灯片,数据自动配图表
- 技术分享 — 技术文档转培训材料,代码块自动排版
- 创业路演 — 商业计划书变路演 PPT,金字塔/矩阵布局
- 读书笔记 — 长文拆解成结构化幻灯片
Agent Trigger
User says any of → activate:
- "把这个文档做成PPT" / "做个演示文稿"
- "Convert this PDF to slides"
- "Generate a presentation from..."
Workflow:
- First time?
bash setup.sh --verify - Missing deps? tell user
bash setup.sh - Ask: "有特殊要求吗?页数、风格、重点?没有我按默认来。"
- Locate input (path or URL)
- Generate:
cd ~/.openclaw/workspace/skills/doc2slides/scripts python3 workflow.py --input \x3Cfile> --output \x3Cfile.pptx> [options] - Verify output, send to user
CLI Options
| Flag | Example |
|---|---|
--input |
Required. PDF / DOCX / MD path |
--output |
Required. Output .pptx path |
--pages N |
Limit slide count |
--instruction "..." |
Custom guidance |
--style corporate |
Color: corporate / tech / nature / warm / minimal / dark_purple / finance |
--theme AI |
Auto color by topic |
--model gpt-4o |
LLM for analysis |
--preview |
Also generate PNG screenshots |
# Example: business style, 8 pages, data focused
python3 workflow.py --input report.pdf --output report.pptx \
--instruction "商务风格,重点突出数据,控制在8页,每页配图表"
Layouts (18+)
| Category | Layouts |
|---|---|
| Data | Dashboard, Big Number, KPI Cards, Chart |
| Structure | Pyramid, Comparison, 2x2 Matrix, Flow |
| Narrative | Timeline, Action Plan, Quote, Full-image |
| Content | Two-column, Three-column, Icon Grid, Vertical List |
| Visual | Progress Ring, Horizontal Bar, Stacked Cards |
Each section of your document gets auto-matched to the best layout.
Troubleshooting
| Problem | Fix |
|---|---|
ModuleNotFoundError: pptx |
pip3 install python-pptx |
| No browser for screenshots | playwright install chromium |
| Chromium download timeout | apt install google-chrome-stable |
| Output blank/broken | Add --preview to debug HTML |
| Too slow for long docs | --pages N to limit |
Pipeline
Document → Analyze → Match Layouts → Build HTML → Render (3x) → PPTX
Default mode runs fully local — no CDN, no cloud. Optionally connect LLM providers (GPT-4o / 智谱 / DeepSeek) for smarter analysis when you configure API keys.
MIT-0 license.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install doc2slides - 安装完成后,直接呼叫该 Skill 的名称或使用
/doc2slides触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Doc2slides 是什么?
One-click PDF/Word/Markdown to designer-grade PPT. AI auto-layout + 18 slide types + built-in charts. Local-first, free. Use when: user wants to create slide... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 468 次。
如何安装 Doc2slides?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install doc2slides」即可一键安装,无需额外配置。
Doc2slides 是免费的吗?
是的,Doc2slides 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Doc2slides 支持哪些平台?
Doc2slides 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Doc2slides?
由 lifei68801(@lifei68801)开发并维护,当前版本 v3.8.2。