SvgSaveOptionsFitToViewPort Property |
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.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic bool FitToViewPort { get; set; }Public Property FitToViewPort As Boolean
Get
Set
public:
property bool FitToViewPort {
bool get ();
void set (bool value);
}member FitToViewPort : bool with get, set
Property Value
Type:
Boolean
ExamplesShows how to mimic the properties of images when converting a .docx document to .svg.
Document doc = new Document(MyDir + "Document.docx");
SvgSaveOptions options = new SvgSaveOptions
{
FitToViewPort = true,
ShowPageBorder = false,
TextOutputMode = SvgTextOutputMode.UsePlacedGlyphs
};
doc.Save(ArtifactsDir + "SvgSaveOptions.SaveLikeImage.svg", options);
See Also