textOutputMode property

SvgSaveOptions.textOutputMode property

Gets or sets a value determining how text should be rendered in SVG.

get textOutputMode(): Aspose.Words.Saving.SvgTextOutputMode

Remarks

Use this property to get or set the mode of how text inside a document should be rendered when saving in SVG format.

The default value is SvgTextOutputMode.UseTargetMachineFonts.

Examples

Shows how to mimic the properties of images when converting a .docx document to .svg.

let doc = new aw.Document(base.myDir + "Document.docx");

// Configure the SvgSaveOptions object to save with no page borders or selectable text.
let options = new aw.Saving.SvgSaveOptions();
options.fitToViewPort = true;
options.showPageBorder = false;
options.textOutputMode = aw.Saving.SvgTextOutputMode.UsePlacedGlyphs;

doc.save(base.artifactsDir + "SvgSaveOptions.SaveLikeImage.svg", options);

See Also