Pptx

Create, edit, and extract text from PPTX presentations with OOXML support.

186|24|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/Steffen025/pai-opencode --skill pptx-steffen025
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pptx
Source: https://github.com/Steffen025/pai-opencode/tree/main/.opencode/skills/Documents/Pptx
Command: npx skills add https://github.com/Steffen025/pai-opencode --skill pptx-steffen025

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-pptx, Pillow, defusedxml, six, playwright, sharp, pptxgenjs, and includes scripts (resource) components.

What problem does it solve?

This Skill provides programmatic PowerPoint (.pptx) processing to automate the creation, editing, analysis, and data extraction from slide decks, reducing manual overhead in presentation workflows.

Core Features & Use Cases

  • Template-driven creation: generate presentations from templates and inventories.
  • OOXML editing: perform advanced direct XML edits for complex layouts.
  • Text inventory & replacements: extract structured text from slides and apply replacements while preserving formatting.
  • Validation & workflow automation: validate outputs and automate end-to-end PPTX pipelines across decks.

Quick Start

Run the provided scripts to inspect, modify, and generate PPTX files:

  • python inventory.py input.pptx inventory.json
  • python replace.py input.pptx replacements.json output.pptx
  • python rearrange.py template.pptx output.pptx 0,34,34,50,52

Frequently Asked Questions about Pptx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PowerPoint presentation using Python?

You can extract text from PowerPoint slides by running a script to generate a structured text inventory from PPTX files. This parses slide content into a JSON file, preserving formatting for downstream analysis and replacement workflows.

Can I replace text in PowerPoint slides without losing formatting?

Yes, you can replace text in PPTX slides without losing formatting by applying replacements from a JSON file. The script modifies deck content directly and outputs a new PPTX file with the updated text and original formatting intact.

How do I automate PowerPoint creation from a template?

Automating PowerPoint creation from templates involves using template-driven generation scripts. These scripts take template PPTX files and structured inventories to programmatically generate new presentations with customized layouts and content.

Does python-pptx support advanced OOXML editing for complex layouts?

Yes, advanced OOXML editing is supported to perform direct XML edits for complex layouts in PowerPoint files. This allows you to manipulate slide structures beyond standard object models, enabling precise control over complex formatting.

What is the best way to rearrange slides in a PPTX deck?

The best way to rearrange slides in a PPTX deck is by using an automation script with an index sequence. This automates the workflow by reordering slides based on specified numbers, outputting a newly structured presentation file.

What are the limitations of automating PPTX workflows with Python?

Automating PPTX workflows with Python requires dependencies like python-pptx and Pillow. Limitations include potential constraints with highly complex direct OOXML edits, requiring validation scripts to ensure outputs meet structural presentation standards.