Class PresentationSvgExporter
Extension methods for exporting Presentation slides as SVG.
Inherited Members
Namespace: DRIT.Presentation.Export.Svg
Assembly: DRIT.Presentation.dll
Syntax
public static class PresentationSvgExporter
Methods
RenderSlideToSvgStream(Presentation, Slide, Stream, SvgOptions?)
Renders a single slide to an SVG stream.
Declaration
public static void RenderSlideToSvgStream(this Presentation presentation, Slide slide, Stream stream, SvgOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | presentation | |
| Slide | slide | |
| Stream | stream | |
| SvgOptions | options |
RenderSlideToSvgString(Presentation, int, SvgOptions?)
Renders a single slide to an SVG string.
Declaration
public static string RenderSlideToSvgString(this Presentation presentation, int slideIndex, SvgOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | presentation | The owner presentation. |
| int | slideIndex | Zero-based slide index. |
| SvgOptions | options | SVG export options. |
Returns
| Type | Description |
|---|---|
| string | The SVG document as a UTF-8 string. |
SaveAsSvg(Presentation, string, SvgOptions?)
Saves each selected slide as an SVG file.
pathPattern may contain {slide} (1-based index) and
{name} (slide name) tokens.
Example: "output_slide{slide}.svg"
Declaration
public static void SaveAsSvg(this Presentation presentation, string pathPattern, SvgOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | presentation | |
| string | pathPattern | |
| SvgOptions | options |