SvgSaveOptions.FitToViewPort
SvgSaveOptions FitToViewPort 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.
SvgSaveOptions.FitToViewPort 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
.
public bool FitToViewPort { get; set; }
Examples
Shows how to configure Wordize to write width and height of output SVG as 100%.
SvgSaveOptions svgSaveOptions = new SvgSaveOptions();
svgSaveOptions.FitToViewPort = true;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "SaveOptions.FitToViewPort.svg", svgSaveOptions)
.Execute();
See Also
- class SvgSaveOptions
- namespace Wordize.Saving
- assembly Wordize