SvgTextOutputMode enumeration

SvgTextOutputMode enumeration

Allows to specify how text inside a document should be rendered when saving in SVG format.

Members

NameDescription
UseSvgFontsSVG fonts are used to render text. Note, not all browsers support SVG fonts.
UseTargetMachineFontsFonts 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.
UsePlacedGlyphsText is rendered using curves. Note, text selection will not work if you use this option.

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