pptx ยท diff

v1.0 to v1.0

24 added, 1 removed. Audit A to A.

---
name: pptx
version: "1.0"
description: Extract text from Microsoft PowerPoint presentations
entry:
script: scripts/main.py
class: PptxSkill
triggers:
extensions:
- ".pptx"
intents:
- "powerpoint"
- "presentation"
- "pptx"
requires:
- python-pptx
author: axoviq.com
license: AGPL-3.0-or-later
---
# PPTX Skill
- Extracts text from `.pptx` files using `python-pptx`. Each slide is rendered as a titled section; speaker notes are appended when present.
+ Extracts text from `.pptx` files using `python-pptx`. Each slide is rendered
+ as a titled section; speaker notes are appended when present.
+
+ ## Setup
+
+ ```bash
+ pip install python-pptx
+ ```
+
+ ## Standalone usage
+
+ ```python
+ import asyncio
+ from synthadoc.skills.pptx.scripts.main import PptxSkill
+
+ skill = PptxSkill()
+
+ async def main():
+ result = await skill.extract("/path/to/slides.pptx")
+ print(result.text) # slide titles + body text + speaker notes
+ print(result.metadata) # {"slides": N}
+
+ asyncio.run(main())
+ ```
## When this skill is used
- Source path ends with `.pptx`
- User intent contains: `powerpoint`, `presentation`, `pptx`