Skip to main content

SVG to Office Open XML conversion toolkit.

Project description

svg2ooxml

svg2ooxml

Convert SVG to PowerPoint with native DrawingML fidelity.

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.

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
  • Figma plugin — browser-based export from Figma to Google Slides
  • Extensible pipeline — service registry with dependency injection for custom providers

Installation

pip install svg2ooxml

Optional extras:

pip install svg2ooxml[render]    # Skia rendering + visual comparison
pip install svg2ooxml[color]     # Advanced color space support
pip install svg2ooxml[slides]    # Google Slides integration
pip install svg2ooxml[api]       # FastAPI service
pip install svg2ooxml[cloud]     # Google Drive/Slides API client

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.6.3.tar.gz (664.5 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.6.3-py3-none-any.whl (862.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for svg2ooxml-0.6.3.tar.gz
Algorithm Hash digest
SHA256 b9402fc8de8d70a185e150ae882f00355233bb7da39548b8cce1dbe5d9748092
MD5 cb785b5a317ad0156d2a40a936ed57a2
BLAKE2b-256 a174b30a9ac9060ab803bb10c60ad4b3cd8e93d9688903313dec9a85b5f8eb6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for svg2ooxml-0.6.3.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.6.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for svg2ooxml-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 939f38a59b0719f7c83276cc2160b37fae6c09834be6342a37b61f96075fb41d
MD5 053748b82fa97431d9c38d86e1106721
BLAKE2b-256 699541d77e8ecb7f7eb67bf1fccd171d7b75f68c370311be8b27ee3e0bc9f07d

See more details on using hashes here.

Provenance

The following attestation bundles were made for svg2ooxml-0.6.3-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