HtmlOptionsEmbedResources Property
Indicates whether to embed resources into HTML or not.

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

Property Value

Type: Boolean
true if this instance is resources embedded; otherwise, false.
To save resources (fonts, images and CSS) into a separate file, enable the use of cache and disable resource embedding as shown in example.
The following example demonstrates how to separate resources from HTML.
ViewerConfig config = new ViewerConfig();
config.EnableCaching = true;
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

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

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