Skip to main content

SVG-to-PowerPoint converter with native, editable PresentationML output.

Project description

svg2ooxml

svg2ooxml

SVG-to-PowerPoint converter with native, editable PresentationML output.

PyPI Downloads Python License: AGPL-3.0


svg2ooxml parses SVG markup, builds a typed intermediate representation, renders native DrawingML XML fragments, and packages them into valid .pptx files. Shapes, text, gradients, filters, masks, clipping paths, and SMIL animations are converted to editable PowerPoint objects — not rasterized images.

svg2ooxml is the converter package. PowerPoint behavior research, authored control decks, and durable oracle evidence are maintained in the companion repository openxml-audit so the package documentation can stay focused on conversion.

The same distribution also carries figma2gslides, a tool package built on top of the converter for Figma and Google Slides workflows. It is intentionally separate from the supported svg2ooxml converter API.

Features

  • Native DrawingML output — shapes, text, and paths render as editable PowerPoint objects
  • SMIL animation support — entrance, emphasis, exit, and motion path animations
  • SVG filter effects — blur, drop shadow, color matrix, and compositing
  • Gradients & patterns — linear, radial, and pattern fills with correct coordinate transforms
  • Masks & clipping — SVG clip paths and masks mapped to OOXML equivalents
  • Multi-slide export — split multi-page SVGs into separate slides
  • Extensible pipeline — service registry with dependency injection for custom providers

Installation

Requires Python 3.13 or newer.

The base install does not depend on NumPy. NumPy is installed only through the render, color, or accel extras for raster/filter/color workloads.

pip install svg2ooxml

Optional extras:

pip install svg2ooxml[render]    # Skia rendering + visual comparison
pip install svg2ooxml[color]     # Advanced color space support
pip install svg2ooxml[figma2gslides]  # Figma/Google Slides tool runtime

Current Release

0.8.2 is a micro fidelity-hardening release on the road to 0.9. It keeps the editable-first promise for default filter fallbacks, adds typed filter input surface handling, tightens transformed per-character text placement, preserves root text fallback styles, and keeps the recent audit/refactor splits within the maintainability guardrails.

Quick Start

from svg2ooxml import SvgToPptxExporter

exporter = SvgToPptxExporter()
exporter.export("input.svg", "output.pptx")

CLI

svg2ooxml convert input.svg -o output.pptx

How It Works

SVG text
  → SVGParser.parse()            → ParseResult (lxml tree + metadata)
  → convert_parser_output()      → IRScene (typed intermediate representation)
  → DrawingMLWriter.render()     → DrawingMLRenderResult (XML fragments + assets)
  → PPTXPackageBuilder.write()   → .pptx file

Links

License

Dual-licensed: AGPL-3.0 for open source, Commercial License for proprietary use. Contact license@svg2ooxml.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

svg2ooxml-0.8.2.tar.gz (803.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

svg2ooxml-0.8.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file svg2ooxml-0.8.2.tar.gz.

File metadata

  • Download URL: svg2ooxml-0.8.2.tar.gz
  • Upload date:
  • Size: 803.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for svg2ooxml-0.8.2.tar.gz
Algorithm Hash digest
SHA256 75f8735ef4b268ad9aff9fd50516fe65430c5d7fa3e9f03cad16a82b39b0229b
MD5 305b3103bfbfa76807e2079aec454884
BLAKE2b-256 7ccd88546e90e24f4be4be1b5faddea4daf248812b4125a2eb54c165f5007107

See more details on using hashes here.

Provenance

The following attestation bundles were made for svg2ooxml-0.8.2.tar.gz:

Publisher: workflow.yml on BramAlkema/svg2ooxml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file svg2ooxml-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: svg2ooxml-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for svg2ooxml-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 912c3c6b7c7903561e94439a0ba9d32cca2e01d5fb3815485e85f993ca0716c7
MD5 5679bdac08a2f28ca821dd12356abc2e
BLAKE2b-256 0e438966bdaf96df84cc611e3c1f1ef4c5dbfbd7aa6176fe0fad174dfc475075

See more details on using hashes here.

Provenance

The following attestation bundles were made for svg2ooxml-0.8.2-py3-none-any.whl:

Publisher: workflow.yml on BramAlkema/svg2ooxml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page