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.5
Syntax
public bool EnableMinification { get; set; }

Property Value

Type: Boolean
Examples
The following example demonstrates how to enable minification.
C#
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