pptx-to-pdf
Skill4 starsChanged 4 months agoMITView on GitHub
Convert PowerPoint decks to PDF with full visual fidelity (fonts, images, charts, theme, layout) by driving the real PowerPoint or LibreOffice engine. Use whenever the user asks to convert .pptx/.ppt to PDF, export slides or a deck as PDF, or 'turn this presentation into a PDF'. Triggers on /pptx-to-pdf, 'pptx to pdf', 'convert PowerPoint to PDF', 'export slides as PDF', 'save deck as PDF'.
In this repository162 other files it gives its agents.
- agents/AGENTS.mdAGENTS.md
- skills/compound-engineering/AGENTS.mdAGENTS.md
- skills/trailofbits-security/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- skills/compound-engineering/CLAUDE.mdCLAUDE.md
- skills/trailofbits-security/CLAUDE.mdCLAUDE.md
- app-store-reviewSkill
- advanced-javascriptSkill
- ai-native-uiSkill
- anime-jsSkill
- app-l100Skill
- barba-jsSkill
- brand-guidelinesSkill
- cinematic-web-engineSkill
- codebase-knowledge-graphSkill
- crossplatform-monorepoSkill
- css-first-uiSkill
- design-auditSkill
- design-critiqueSkill
- dev-cycleSkill
- device-hardware-bridgeSkill
- discovery-docSkill
- docxSkill
- edge-intelligenceSkill
- graph-aware-reviewSkill
- linkedin-posterSkill
- local-first-architectureSkill
- modern-build-pipelineSkill
- motion-nativeSkill
- nano-bananaSkill
- playwrightSkill
- pptxSkill
- project-initSkill
- remotionSkill
- sensory-nativeSkill
- spline-3dSkill
- streaming-cacheSkill
- tanstack-ecosystemSkill
- design-taste-frontendSkill
- tauri-desktopSkill
- threejsSkill
- transition-nativeSkill
- ui-design-stackSkill
- visual-nativeSkill
- web-l100Skill
- web-platform-apisSkill
- xlsxSkill
- better-authSkill
- claude-real-videoSkill
- clone-websiteSkill
- css-keyframe-animationsSkill
- design-checkSkill
- design-dnaSkill
- design-polishSkill
- drizzle-neonSkill
- fastlaneSkill
- angular-architectSkill
- api-designerSkill
- architecture-designerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Do not use the wiki-extract-pptx.py script for this — that pulls *text out* of a deck for ingestion.
- Distinctive: line 44
No engine found → exit 1 with install hints.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PPTX → PDF
Faithful PowerPoint → PDF conversion. Backed by scripts/convert-pptx-to-pdf.py, which
renders the deck through a real engine (not text extraction), so the PDF matches the
slides exactly — fonts, images, charts, SmartArt, theme, positioning.
When to use
- User wants a
.pptx/.pptturned into a.pdf(single file or batch). - User wants to share/print/archive a deck as a fixed-layout PDF.
Do not use the wiki-extract-pptx.py script for this — that pulls text out of a deck
for ingestion; it does not render slides.
Run it
# One deck -> <deck>.pdf beside the source
uv run ~/.claude/scripts/convert-pptx-to-pdf.py "<abs path to deck.pptx>"
# Explicit output (single input only)
uv run ~/.claude/scripts/convert-pptx-to-pdf.py "<deck.pptx>" --output "<out.pdf>"
# Batch into a folder
uv run ~/.claude/scripts/convert-pptx-to-pdf.py a.pptx b.pptx --outdir "<dir>"
# Structured result (paths, page counts, sizes)
uv run ~/.claude/scripts/convert-pptx-to-pdf.py "<deck.pptx>" --jsonThe script prints the absolute path of each produced PDF (one per line). Exit codes:
0 ok · 1 runtime/conversion error · 2 usage error. After converting, confirm the
PDF exists and report its path back to the user.
Engines (auto-detected)
--engine auto(default): PowerPoint if installed → else LibreOffice. PowerPoint is preferred because it honors PowerPoint's "shrink text on overflow" autofit; LibreOffice ignores autofit and can clip overflowing text boxes on export (verified 2026-06-04 — LibreOffice dropped the bottom of an autofit slide that PowerPoint rendered in full).- This machine has both PowerPoint (Office16) and LibreOffice installed, so
autouses PowerPoint for full fidelity. --engine libreoffice— force the free, fully-headless path (no PowerPoint session). Fine for decks that don't rely on autofit; risks clipping on dense slides.--engine powerpoint— force perfect fidelity.- No engine found → exit 1 with install hints.
Notes & limits
- PowerPoint path uses COM in the user's session; it only closes the deck it opened (never the user's other open decks) and leaves no orphaned process.
- A rendering engine must be present on the host (PowerPoint or LibreOffice).
- First run resolves wheels via
uv(~10–30s) and generates the PowerPoint type-library wrapper once; cached afterward. - Self-check anytime:
uv run ~/.claude/scripts/convert-pptx-to-pdf.py --self-test(builds a 2-slide deck, converts, asserts a 2-page PDF, exits 0/1).
User-facing entry point
Slash command: /pptx-to-pdf <path-to-deck.pptx> (see commands/pptx-to-pdf.md) — same capability, user-invocable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

