Aspose::Words::Saving::SvgSaveOptions::get_FitToViewPort method
SvgSaveOptions::get_FitToViewPort method
Specifies if the output SVG should fill the available viewport area (browser window or container). When set to true width and height of output SVG are set to 100%. The default value is false.
bool Aspose::Words::Saving::SvgSaveOptions::get_FitToViewPort() const
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
- Class SvgSaveOptions
- Namespace Aspose::Words::Saving
- Library Aspose.Words for C++