CadOptionsScaleFactor Property
The scale factor affects the size of an output document.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public float ScaleFactor { get; set; }

Property Value

Type: Single
Values higher than 1 will enlarge and values between 0 and 1 will make render result smaller. This property is ignored when either Height or Width properties are set.
The following example demonstrates how to set the scale factor while rendering into HTML.
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();
HtmlOptions options = new HtmlOptions();
options.CadOptions.ScaleFactor = 1.5f;

string guid = "document.dwg";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also