GroupDocs.Viewer for .NET 18.7 Release Notes

Major Features

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

  • Added ISFF-based DGN (V7) file format support
  • Improved output content for printable HTML
  • Extended DefaultFontName setting support for ODG, SVG and MetaFile Images

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-1475Add ISFF-based DGN (V7) file format supportNew Feature
VIEWERNET-1651Extend DefaultFontName setting support for ODG, SVG and MetaFile ImagesImprovement
VIEWERNET-1637Improve output content for printable HTMLImprovement
VIEWERNET-1586Support empty string for ViewerConfig.PageNamePrefix propertyImprovement
VIEWERNET-1567Improve compression for rendering into HTML with EnableMinification settingImprovement
VIEWERNET-1657DOCX to HTML pages - all HTML pages use CSS class names from first pageBug
VIEWERNET-1646API generates 5 pages with repeated content when rendering single page email messageBug
VIEWERNET-1542Invalid styles when rendering presentation documents into HTMLBug
VIEWERNET-1498Issues when printing printable Html or saving as PDFBug

Public API and Backward Incompatible Changes

List of Changes in v18.7

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

GroupDocs.Viewer.Config.ViewerConfig

Public string PageNamePrefix property accepts the empty string

PageNamePrefix property is used for adding prefixes to output file names in the cache. The default implementation of CacheDataHandler is using “page” as the prefix. Output HTML files are named page1.html, page2.html and so on, resources folders are named page1, page2 and so on, output image files are named page1.png, page2.png and so on. Since the version 18.7, it is possible to set the empty string for PageNamePrefix property, then default CacheDataHandler will name this files and folder correspondingly 1.html, 2.html and so on, resource folder names 1, 2 and so on, output image files 1.png, 2.png and so on.

Public bool UseCache property compilation is set to fail

This property will be removed in version 18.8, please use EnableCaching property instead.

GroupDocs.Viewer.Domain.Attachment

Public Attachment(string sourceDocumentGuid, string attachmentID, string name, long size) new constructor has been added

This constructor is used to initialize attachments that have ID not matching with attachment name. Email documents can have attachments that have same file names and, in that case, ID of the attachment will be different from attachment name.

Public Attachment(string sourceDocumentGuid, string attachmentID, string name) new constructor has been added

This constructor is used to initialize attachments that have ID not matching with attachment name. Email documents can have attachments that have same file names, in that case, ID of the attachment will be different from attachment name.

GroupDocs.Viewer.Domain.AttachmentBase

Public string ID property has been added

This ID property is used to distinguish between email attachments, that have the same name. In cases when all attachments in email and PDF documents have unique names, ID is equal to Name property.

GroupDocs.Viewer.Exception.CacheFileNotFoundException

GroupDocs.Viewer.Exception.CacheFileNotFoundException class compilation set to fail

This exception is obsolete. GroupDocs.Viewer will start throwing System.IO.FileNotFoundException instead of CacheFileNotFoundException in version v18.7 and next versions.

GroupDocs.Viewer.Exception.GuidNotSpecifiedException

GroupDocs.Viewer.Exception.GuidNotSpecifiedException class compilation is set to fail

This exception is obsolete. GroupDocs.Viewer will start throwing System.ArgumentNullException instead of GuidNotSpecifiedException in version v18.7 and next versions.

GroupDocs.Viewer.Exception.StoragePathNotSpecifiedException

GroupDocs.Viewer.Exception.StoragePathNotSpecifiedException class compilation is set to fail

This exception is obsolete and will be removed in v18.8.

GroupDocs.Viewer.Handler.Cache.ICacheDataHandler

void ClearCache(TimeSpan olderThan) method compilation is set to fail

This method is obsolete and will be removed in v18.8

void ClearCache() method has been added

Use this method to clear all the data from cache.

GroupDocs.Viewer.Handler.ViewerHtmlHandler

public void ClearCache(TimeSpan olderThan) method compilation is set to fail

Please use public void ClearCache() or public void ClearCache(string guid) methods instead.

GroupDocs.Viewer.Handler.ViewerImageHandler

public void ClearCache(TimeSpan olderThan) method compilation is set to fail

Please use public void ClearCache() or public void ClearCache(string guid) methods instead.