SvgSaveOptions.ExportEmbeddedImages

SvgSaveOptions ExportEmbeddedImages property. Specifies whether images should be embedded into the SVG document as base64. Be aware that activating this option can lead to a significant increase in the size of the output SVG file.

SvgSaveOptions.ExportEmbeddedImages property

Specifies whether images should be embedded into the SVG document as base64. Be aware that activating this option can lead to a significant increase in the size of the output SVG file.

public bool ExportEmbeddedImages { get; set; }

Examples

Shows how to configure raster images export to SVG.

SvgSaveOptions svgSaveOptions = new SvgSaveOptions();
svgSaveOptions.ExportEmbeddedImages = false;
svgSaveOptions.MaxImageResolution = 200;
svgSaveOptions.ResourcesFolder = ArtifactsDir +"svgresources";
svgSaveOptions.ResourcesFolderAlias = "svgresources";

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "SaveOptions.ExportEmbeddedImages.svg", svgSaveOptions)
    .Execute();

See Also