GroupDocs.Viewer for .NET 18.10 Release Notes

Major Features

There are 12 features, improvements, and fixes in this regular monthly release. The most notable are:

  • Added new option which allows setting the list of fonts to exclude when rendering into HTML
  • Improved rendering of MS Project documents when Start/End date options are set
  • Improved performance of methods which accept URL

Full List of Issues Covering all Changes in this Release

VIEWERNET-1677Option for setting the list of fonts that should be excluded from HTMLFeature
VIEWERNET-1773Do not show items beyond Start and End date options when rendering MS Project documentsImprovement
VIEWERNET-1742Release internal resources for methods which accept URLImprovement
VIEWERNET-1738GetDocumentInfo method page number depending on the type of ViewerHandlerImprovement
VIEWERNET-1679Prevent setting malicious values for HtmlResourcePrefixImprovement
VIEWERNET-1678Improve setting PageSize and TimeScale for MS Project documents by defaultImprovement
VIEWERNET-1741Specified watermark font not found exception when calling GetPdfFile methodBug
VIEWERNET-1736OutlookOptions.MaxItemsInFolder option not working properly for rendering into image and PDFBug
VIEWERNET-1662Incorrect rendering of PDF document into HTMLBug
VIEWERNET-1659Duplicate link tag when rendering Text documents with external resourcesBug
VIEWERNET-1649Exception when rendering PDF document as HTMLBug
VIEWERNET-1420Images are missing when rendering PDF document into HTML or ImageBug

Public API and Backward Incompatible Changes

Option for setting the list of fonts that should be excluded from HTML

Adding fonts into HTML ensures that the text from the original document will appear similar in HTML, regardless of whether fonts are installed on the viewer’s device or not. But at the same time, this improvement comes with the cost of the increased size of the output file. Since the version 18.10 GroupDocs.Viewer API provides a new setting - HtmlOptions.ExcludeFontsList, that allows finding the compromise, by preventing adding specific fonts (that are commonly available on most of the devices). The example below shows how to prevent adding fonts into output HTML. Currently, it works only for Presentation documents. We are planning to extend support for this feature for all document types where it is applicable in the upcoming releases.

Prevent adding Arial and Times New Roman fonts into HTML representations (other fonts used in original presentation will be added).

// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create html handler
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
string guid = "presentation.pptx";
HtmlOptions options = new HtmlOptions();
options.ExcludeFontsList.Add("Times New Roman");
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
foreach (PageHtml page in pages)
    Console.WriteLine("Page number: {0}", page.PageNumber);
    Console.WriteLine("Html content: {0}", page.HtmlContent);

List of Changes in v18.10

In the version 18.10, following public class members were added, marked as obsolete, removed or replaced.


DateTime GetLastModificationDate(string guid) method compilation is set to fail

This method is obsolete and will be removed after v18.10. GroupDocs.Viewer will rely on LastModificationDate field in the FileDescription object returned by GetFileDescription method.