HtmlOptionsExcludeFontsList Property
The list of font names, that will be excluded from HTML.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public List<string> ExcludeFontsList { get; set; }

Property Value

Type: ListString
The fonts that are added into HTML, improve stability of the output view, at the same time increase the size the rendering result. This option, lets you find compromise, between stability and output size. Include the font names that are popular and exist in most systems. Please note, this property is active only when ExcludeFonts property is set to false.
The following example demonstrates how to exclude specific fonts.
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();

string guid = @"C:\storage\document.pptx";
HtmlOptions options = new HtmlOptions();
options.ExcludeFontsList.Add("Times New Roman");
options.ExcludeFontsList.Add("Courier New");

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