SuperAPI AI Directory

dragon-ppt-maker

Office & productivity

View repository

Updated 10-15 17:26

About this skill

ppt-maker

Create beautiful PPTs with python-pptx, supporting tech-style design, mixed text and images, and HTML content embedding.

Features

  • 🎨 Tech-style UI design
  • 📊 Multiple layouts: title page, content page, feature grid, comparison page
  • 🖼️ Support for inserting images
  • 🔗 Support for HTML content (via screenshots or links)

Install dependencies

pip install python-pptx pillow

Usage

Command line

python ppt_maker.py --title "演示标题" --content "内容1|内容2|内容3" --output demo.pptx

Python API

from ppt_maker import PresentationBuilder

builder = PresentationBuilder()
builder.add_title_slide("标题", "副标题")
builder.add_content_slide("章节标题", ["要点1", "要点2", "要点3"])
builder.add_feature_grid([("特性1", "描述1"), ("特性2", "描述2")])
builder.save("output.pptx")

Example: OpenClaw introduction

from ppt_maker import PresentationBuilder, Theme

prs = PresentationBuilder(theme=Theme.TECH)

# 封面
prs.add_title_slide("OpenClaw", "您的跨平台AI个人助理")

# 内容页
prs.add_content_slide("什么是 OpenClaw?", [
    "开源免费的自托管 AI 网关",
    "连接 WhatsApp、Telegram、Discord 等多平台",
    "数据完全掌控在自己手中"
], icon="🤖")

# 特性网格
prs.add_feature_grid([
    ("多通道网关", "一个 Gateway 同时连接多个平台"),
    ("插件扩展", "支持 Mattermost 等更多插件"),
    ("多 Agent 路由", "隔离的会话空间"),
    ("移动节点", "配对 iOS/Android 设备")
])

# 保存
prs.save("OpenClaw介绍.pptx")

Themes

  • Theme.TECH - Tech style (dark blue + cyan)
  • Theme.MODERN - Modern minimalist (black, white, gray)
  • Theme.CORPORATE - Corporate style (blue + white)