| 1 | """PPTX -> SVG semantic converter (reverse of svg_to_pptx). |
| 2 | |
| 3 | Reads OOXML (DrawingML) directly from a .pptx zip archive and emits SVG with |
| 4 | shape-level fidelity: <p:sp prst="rect"> -> <rect>, <p:txBody> -> <text>, etc. |
| 5 | |
| 6 | Public entry: convert_pptx_to_svg(). |
| 7 | """ |
| 8 | |
| 9 | from __future__ import annotations |
| 10 | |
| 11 | __all__ = ["convert_pptx_to_svg"] |
| 12 | |
| 13 | |
| 14 | def __getattr__(name: str): |
| 15 | """Load the public converter lazily so shared submodules stay lightweight.""" |
| 16 | if name != "convert_pptx_to_svg": |
| 17 | raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
| 18 | from .converter import convert_pptx_to_svg |
| 19 | |
| 20 | return convert_pptx_to_svg |
| 21 |