HtmlOptionsExcludeFonts Property
Indicates whether to include fonts into HTML. Default value is false.

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

Property Value

Type: Boolean
When fonts are included, depending on EmbedResources option, they will be embedded inline as base64-encoded fonts or added as separate resources.
The following example demonstrates how to prevent adding fonts into HTML.
ViewerConfig config = new ViewerConfig();
config.EnableCaching = true;
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

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

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