Generate PPTX decks on Windows using bash and Python. Use when the user asks to auto-create slides, build a .pptx from a structured outline/spec, or convert HTML (optionally to PDF) before embedding into slides. Covers python-pptx workflows, template/theme reuse, and lightweight HTML-to-PDF rendering when available.
Create .pptx decks on Windows with Python-only tooling, defaulting to python-pptx and a structured slide spec. Optionally render HTML to PDF first, then embed as full-bleed images if a renderer is available.
.pptx should be usedpython-pptx using a slide spec.weasyprint is installed), then place each rendered page as a full-bleed image in PPTX. Use only if the user explicitly wants HTML-first output and accepts the renderer dependency.Generate slide spec
Draft a JSON/YAML spec from the outline, confirm structure, then run scripts/pptx_from_spec.py.
Build the deck Run the script, inspect the output, and iterate on layout or assets.
references/slide_spec.md).python scripts/pptx_from_spec.py --spec specs/demo.json --out output/demo.pptx --widescreen
python scripts/html_to_pdf.py --html slides/index.html --out build/slides.pdf
scripts/pptx_from_spec.py with type: image slides.scripts/pptx_from_spec.py:
title, bullets, image, and two_col slide types.--template to reuse theme layouts from an existing .pptx.scripts/html_to_pdf.py:
weasyprint if installed.references/slide_spec.md: Spec format, examples, and layout notes.references/dependencies.md: Minimal dependency guidance for python-pptx and optional HTML-to-PDF rendering.