Aspose::Words::Saving::SvgSaveOptions::get_TextOutputMode method
Contents
[
Hide
]SvgSaveOptions::get_TextOutputMode method
Gets or sets a value determining how text should be rendered in SVG.
Aspose::Words::Saving::SvgTextOutputMode Aspose::Words::Saving::SvgSaveOptions::get_TextOutputMode() const
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 UseTargetMachineFonts.
Examples
Shows how to mimic the properties of images when converting a .docx document to .svg.
auto doc = MakeObject<Document>(MyDir + u"Document.docx");
// Configure the SvgSaveOptions object to save with no page borders or selectable text.
auto options = MakeObject<SvgSaveOptions>();
options->set_FitToViewPort(true);
options->set_ShowPageBorder(false);
options->set_TextOutputMode(SvgTextOutputMode::UsePlacedGlyphs);
doc->Save(ArtifactsDir + u"SvgSaveOptions.SaveLikeImage.svg", options);
See Also
- Enum SvgTextOutputMode
- Class SvgSaveOptions
- Namespace Aspose::Words::Saving
- Library Aspose.Words for C++