← 返回
效率工具

PowerPoint Automation

Automate common PowerPoint/WPS Presentation operations on Windows via COM (read text/notes/outline, export PDF/images, replace text, insert/delete slides, unify font/size/theme, extract images/media). Use for single-presentation actions (no batch).
通过COM自动化Windows上的PowerPoint/WPS演示文稿操作(读取文本/备注/大纲、导出PDF/图片、替换文本、插入/删除幻灯片、统一字体/字号/主题、提取图片/媒体)。适用于单文件处理(不支持批量)。
fadeloo
效率工具 clawhub v0.1.0 1 版本 99283.4 Key: 无需
★ 13
Stars
📥 9,715
下载
💾 2,191
安装
1
版本
#automation#com#latest#powerpoint#ppt

概述

WPS/PowerPoint Automation (Windows)

Use the bundled Python script to control PowerPoint or WPS Presentation via COM.

Requirements

  • Windows with Microsoft PowerPoint or WPS Presentation installed.
  • Python + pywin32 (python -m pip install pywin32).

Quick start

python {baseDir}/scripts/wps_ppt_automation.py read --input "C:\path\file.pptx"
python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format pdf --output "C:\path\out.pdf"

Commands

read

Extract all slide text.

python {baseDir}/scripts/wps_ppt_automation.py read --input "C:\path\file.pptx" --output "C:\path\out.txt"

notes

Extract speaker notes.

python {baseDir}/scripts/wps_ppt_automation.py notes --input "C:\path\file.pptx" --output "C:\path\notes.txt"

outline

Export slide titles as outline.

python {baseDir}/scripts/wps_ppt_automation.py outline --input "C:\path\file.pptx" --output "C:\path\outline.txt"

export

Export to PDF or images (PNG).

python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format pdf --output "C:\path\out.pdf"
python {baseDir}/scripts/wps_ppt_automation.py export --input "C:\path\file.pptx" --format images --outdir "C:\out\slides"

replace

Find/replace text across slides.

python {baseDir}/scripts/wps_ppt_automation.py replace --input "C:\path\file.pptx" --find "old" --replace "new" --save "C:\path\out.pptx"

slides

Insert or delete slides.

python {baseDir}/scripts/wps_ppt_automation.py insert-slide --input "C:\path\file.pptx" --index 2 --save "C:\path\out.pptx"
python {baseDir}/scripts/wps_ppt_automation.py delete-slide --input "C:\path\file.pptx" --index 3 --save "C:\path\out.pptx"

font

Unify font name/size across slides.

python {baseDir}/scripts/wps_ppt_automation.py font --input "C:\path\file.pptx" --name "Microsoft YaHei" --size 20 --save "C:\path\out.pptx"

theme

Apply a theme (.thmx).

python {baseDir}/scripts/wps_ppt_automation.py theme --input "C:\path\file.pptx" --theme "C:\path\theme.thmx" --save "C:\path\out.pptx"

extract-images

Export embedded images.

python {baseDir}/scripts/wps_ppt_automation.py extract-images --input "C:\path\file.pptx" --outdir "C:\out\images"

Notes

  • If WPS is installed, try --app wps; otherwise default uses PowerPoint.
  • Use --visible true if you need to watch the UI.
  • Avoid batch usage; this skill is for single-presentation operations.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 09:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,720
ai-intelligence

NotebookLM CLI

fadeloo
NotebookLM CLI 封装,通过 `node {baseDir}/scripts/notebooklm.mjs` 调用。用于认证、笔记本、聊天、来源、笔记、分享、研究以及生成/下载工件。
★ 23 📥 8,991
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,168