Click or drag to resize

SvgTextOutputMode Enumeration

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 21.5.0


public enum SvgTextOutputMode


  Member nameValueDescription
UseSvgFonts0 SVG fonts are used to render text. Note, not all browsers support SVG fonts.
UseTargetMachineFonts1 Fonts installed on the target machine are used to render text. Note, if some of fonts used in the document are not available on the target machine, document can look differently.
UsePlacedGlyphs2 Text is rendered using curves. Note, text selection will not work if you use this option.


Shows how to mimic the properties of images when converting a .docx document to .svg.
Document doc = new Document(MyDir + "Document.docx");

// Configure the SvgSaveOptions object to save with no page borders or selectable text.
SvgSaveOptions options = new SvgSaveOptions
    FitToViewPort = true,
    ShowPageBorder = false,
    TextOutputMode = SvgTextOutputMode.UsePlacedGlyphs

doc.Save(ArtifactsDir + "SvgSaveOptions.SaveLikeImage.svg", options);

ExpandedSee Also