Excluding Fonts from Output HTML using GroupDocs.Viewer for .NET 17.9

GroupDocs Viewer for .NET

We are excited to release another monthly release, version 17.9, of GroupDocs.Viewer for .NET. This version allows you excluding fonts from HTML representation of the document and saving them as external resources. Also, we have extended the support of responsive HTML for MS Visio documents, SVG images, MS Word documents, Open Office Text and Rich Text document format. The latest version also includes some important bug fixes for the issues found in prior releases. We recommend you to upgrade to the latest version for an improved experience.

Excluding Fonts when Rendering to HTML

Embedded fonts increase the size of the rendering result, therefore, in order to prevent adding fonts into HTML, we introduced ExcludeFonts property of HtmlOptions class. For more details on excluding fonts from HTML representation, please visit this documentation article.

GIF Images with Animation in Output HTML

In earlier versions, when rendering document into HTML, GIF images were converted into PNG format. Therefore, the images were displayed without animation in the resultant HTML. From version 17.9, we have added the support of saving the GIF images as it is when rendering the documents into HTML.

.NET Document Viewer API – Improvements

Following are the improvements that we made in version 17.9.
  • Showing local time when rendering email messages
  • Responsive HTML output for rendering MS Visio documents, SVG images and Text documents
  • Improved rendering into HTML for rotated documents

Document Rendering API for .NET – Fixes

Following issues are fixed in GroupDocs.Viewer for .NET 17.9.
  • Slow rendering and gigabytes of RAM consumption for Word document of 1758 pages
  • Issue with recipient and sent date when rendering from .eml message to image
  • File extension field does not include period
  • Incorrect position of parenthesis in output HTML
  • Out Of Memory Exception when rendering PDF into image
  • Blank output HTML page when rendering PDF document
  • Misplaced characters when viewing HTML in Safari for iOS
  • Alignment of radio button text and checkbox text is not proper

Breaking Changes in v17.9

Following are the breaking changes in GroupDocs.Viewer for .NET 17.9.

NuGet Package Name Changed

The NuGet package name is changed from groupdocs-viewer-dotnet to GroupDocs.Viewer.

File Extension Field does not Include Period

There is a breaking change in the version 17.9 related to the file extensions. This change is especially relevant to users who have implemented their own custom ICacheDataHandler. All file extensions from now on will come with the leading dot. Following public members are affected:
  • FileExtension property of ImageOptions class
  • Extension property of the AttachmentBase abstract class
  • SupportedDocumentFormats property of the DocumentFormatsContainer class
  • Extension property of the FileDescription class
  • Extension property of DocumentInfoContainer class
  • OutputExtension property of the CachedDocumentDescription and CachedPageDescription classes.

Related Links and Resources

We have a few channels and resources for you to download, learn, try and get technical support on document viewer API.

Feedback

As always, if you have any questions or suggestions, feel free to write on our forum.