/install fast-ppt
pingPPT
用户要 文件 → 调用 pingPPT API → 回复 .pptx 保存路径。
鉴权(当前):API 暂不要求 PINGAI_PPT_API_KEY,curl 无需 Authorization 头。勿向用户索要密钥。
用户怎么说
把 report.pdf 做成 PPT,主题 kubernetes_blueprint_2026
把 /path/to/doc.pdf 做成幻灯片,主题 cangzhuo
把 手册.pdf 仅转换 成 PPT
把 contract.pdf 保持原样转成可编辑幻灯片
有哪些 PPT 主题?
问主题 → 发 ppt.siping.me 或贴下方主题表。
从用户消息提取
| 项 | 规则 |
|---|---|
| 文件 | PDF / PPTX / DOCX / MD / TXT 等工作区路径 |
theme |
用户写的主题 id;未写则用 kubernetes_blueprint_2026(仅转换模式可省略) |
mode |
见下方 PDF 处理模式 |
PDF 处理模式
| 模式 | API mode |
适用 | 效果 |
|---|---|---|---|
| AI 主题排版(默认) | 不传或 theme |
PDF / Word / MD 等 | 转 Markdown → LLM 按主题重排幻灯片 |
| 仅转换 | convert_only |
仅 PDF | 每页 PDF → 一页 PPT;背景/图片保留,文字可编辑;不用 LLM、不用主题 |
用户说法 → mode 映射:
- 仅转换、convert only、保持原样、原样转换、不要主题 →
convert_only - 其余 → 默认 AI 主题排版
仅转换 技术要点(内部参考,勿原样甩给用户):
- 整页渲染为背景(redact 去掉背景图里的文字,避免重影)
- cover 缩放铺满 16:9,裁切溢出,避免左右白边
- 文字按 PDF 坐标叠加为可编辑层
局限:扫描版 PDF(纯图片无文字层)暂不支持 OCR;复杂多栏版式可能有轻微偏差。
执行(上传 → 轮询 → 下载)
0. API 地址
API="${PINGAI_PPT_API_URL:-http://47.103.80.109:8080}"
1. 上传 → 记录 job_id
AI 主题排版(默认):
THEME="kubernetes_blueprint_2026"
FILE="/path/to/source.pdf"
OUT="/path/to/output.pptx"
curl -sS \
-F "file=@$FILE" \
-F "theme=$THEME" \
"$API/v1/jobs"
PDF 仅转换:
curl -sS \
-F "file=@$FILE" \
-F "mode=convert_only" \
"$API/v1/jobs"
mode 也接受:仅转换
2. 轮询 — 每 15–30 秒一次,最长 30 分钟,直到 status 为 done
curl -sS "$API/v1/jobs/$JOB_ID"
| status | 处理 |
|---|---|
queued / processing |
继续等 |
done |
下载 |
failed |
用简单中文说明 error |
3. 下载
curl -sS -o "$OUT" "$API/v1/jobs/$JOB_ID/download"
回复用户
AI 主题排版:
已生成:
/path/to/report.pptx
主题:Kubernetes 蓝图 2026
预览:https://ppt.siping.me/viewer.html?theme=kubernetes_blueprint_2026
仅转换:
已生成:
/path/to/手册.pptx
模式:仅转换(保留原页背景,文字可编辑)
勿堆砌 job_id、API 等技术细节。
内置主题(19 套)
theme= 填 id。预览:https://ppt.siping.me/viewer.html?theme=\x3Cid>
| id | 名称 |
|---|---|
brutalist_ai_newspaper_2026 |
AI 行业报纸 2026 |
building_effective_agents |
构建高效 Agent |
cangzhuo |
藏拙 |
fashion_weekly_digest |
时尚美学周鉴 |
general_dark_tech_claude_code_auto_mode |
Claude Code 自动模式 |
glassmorphism_demo |
毛玻璃风格演示 |
global_ai_capital_2026 |
全球 AI 资本 2026 |
high_rise_renewal |
高层住宅「主动再生」 |
home_design_trends_2026 |
2026 家居设计趋势 |
image_text_showcase |
图文范式展示 |
indie_bookstore_zine_guide |
独立书店 Zine 指南 |
kimsoong_loyalty_programme |
锦上客户忠诚计划 |
kubernetes_blueprint_2026 |
Kubernetes 蓝图 2026(默认) |
lin_huiyin_architect |
林徽因:当之无愧的建筑师 |
lin_huiyin_architect_revised |
重识林徽因建筑师身份 |
liziqi_plant_dye_colors |
李子柒植物染色彩 |
pritzker_2026 |
普利兹克奖 2026 |
sugar_rush_memphis |
Sugar Rush 孟菲斯音乐节 |
swiss_grid_systems |
瑞士网格系统 |
环境变量
| 变量 | 说明 |
|---|---|
PINGAI_PPT_API_URL |
可选,默认 http://47.103.80.109:8080 |
PINGAI_PPT_API_KEY |
当前不需要;日后服务端开启鉴权时再配 |
出错时(内部处理,勿原样甩给用户)
| 现象 | 处理 |
|---|---|
401 / 403 |
服务端已开启鉴权,需配置 Key |
503 |
服务未就绪 |
| 超时 | 换小文件或稍后重试 |
convert_only + 非 PDF |
提示仅转换模式只支持 PDF |
对用户:生成失败,请稍后再试 + 简短原因。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fast-ppt - After installation, invoke the skill by name or use
/fast-ppt - Provide required inputs per the skill's parameter spec and get structured output
What is Fast PPT?
把 PDF/文档做成可编辑 PPTX。PDF 支持两种模式:AI 主题排版(默认)或仅转换(保留原页背景+可编辑文字)。主题预览 ppt.siping.me。触发:改成ppt、做成幻灯片、仅转换、ping-ppt。 It is an AI Agent Skill for Claude Code / OpenClaw, with 59 downloads so far.
How do I install Fast PPT?
Run "/install fast-ppt" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Fast PPT free?
Yes, Fast PPT is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Fast PPT support?
Fast PPT is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Fast PPT?
It is built and maintained by PING SI (@sipingme); the current version is v1.0.1.