HtmlSaveOptions.ExportShapesAsSvg

HtmlSaveOptions ExportShapesAsSvg property. Controls whether shapes are converted to SVG images when saving to HTML MHTML EPUB or AZW3. Default value is false.

HtmlSaveOptions.ExportShapesAsSvg property

Controls whether shapes are converted to SVG images when saving to HTML, MHTML, EPUB or AZW3. Default value is false.

public bool ExportShapesAsSvg { get; set; }

Remarks

If this option is set to true, shapes are exported as <svg> elements. Otherwise, they are rendered to bitmaps and are exported as <img> elements.

Examples

Shows how to configure Wordize to export shapes as SVG to HTML.

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.ExportShapesAsSvg = true;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "HtmlSaveOptions.ExportShapesAsSvg.html", htmlSaveOptions)
    .Execute();

See Also