agentleFS
Leo-AtienzaLeo-Atienza/atlas-claude/skills/pptx-to-pdf/SKILL.md

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'.

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
  1. Very specific:

    Do not use the wiki-extract-pptx.py script for this — that pulls *text out* of a deck for ingestion.

    line 16
  2. Distinctive:

    No engine found → exit 1 with install hints.

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/.ppt turned 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>" --json

The 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 auto uses 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.