HtmlOptionsEnableMinification Property
Indicates whether output content (HTML, SVG and CSS) should be minified. Default value is false.

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

Property Value

Type: Boolean
The following example demonstrates how to enable minification.
ViewerConfig config = new ViewerConfig();
config.EnableCaching = true;
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

string guid = @"C:\storage\document.doc";
HtmlOptions options = new HtmlOptions();
options.EnableMinification = true;

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