When rendering to HTML, GroupDocs.Viewer renders each page of the source document as a separate HTML document.
GroupDocs.Viewer for .NET provides two options to manage CSS, fonts, images, and other resources:
HTML with external resources stores page resources as separate files. This allows reusing common resources and results in reducing page size and loading speed.
HTML with embedded resources integrates page resources into HTML. This makes each document page self-sufficient but results in increasing page size and loading speed.
To render files to HTML, follow these steps:
Create an instance of the Viewer class. Specify the source document path as a constructor parameter.
Instantiate the HtmlViewOptions object. Specify a path to save the rendered pages.