GroupDocs.Viewer for .NET 19.4 Release Notes

Major Features

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

  • Added cdr file formats support
  • Ability to render files contained in zip archives
  • Extended support for loading fonts from custom folders for vector image formats

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-1940Add cdr file format supportFeature
VIEWERNET-1859Option for rendering content of the specified folder in the zip archiveFeature
VIEWERNET-1861Possibility to render files contained in zip archives as attachmentsFeature
VIEWERNET-1846Extend support for ViewerConfig.FontDirectories setting to vector image formatsImprovement
VIEWERNET-1857Rending attachments from password protected zip archivesImprovement
VIEWERNET-23Exception: Value does not fall within the expected rangeBug
VIEWERNET-51Some characters are missing when rendering PDF as HtmlBug
VIEWERNET-203Invalid Printable HTML for MS Project documents with several pagesBug
VIEWERNET-225Missing characters when rendering PDF document as HTMLBug
VIEWERNET-1227License is not applied in Unit Test projectBug
VIEWERNET-1939ArchiveDocumentInfoContainer.Folders doesn’t return the list of foldersBug
VIEWERNET-1977Values in the form fields are missing when rendering PDF into HTMLBug
VIEWERNET-1966First page of ODT documents is not renderingBug
VIEWERNET-1975Metered related exception when License is initialized with other GroupDocs productsBug

Public API and Backward Incompatible Changes

Since the version19.4 files contained in archives (e.g. inside zip, tar formats) can be obtained through the GetFile() method as shown in examples below.

C# (Obtaining attachment from document that is stored on the disk)

// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";

// Create image handler object
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Create attachment object 
Attachment attachment = new Attachment("attachment.zip", "foldername\document.docx", "document.docx");

// Get attachment original file and print out Stream length
using (FileContainer fileContainer = imageHandler.GetFile(attachment))
{
	Console.WriteLine("Attach stream lenght: {0}", fileContainer.Stream.Length);
}

C# (Obtaining attachment from document’s stream)

// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";

// Create image handler object
ViewerImageHandler imageHandler = new ViewerImageHandler(config);

// Create attachment object and print out its name and file type
Attachment attachment = new Attachment("attachment.zip", "foldername\document.docx", "document.docx");
Console.WriteLine("Attach name: {0}, Type: {1}", attachment.Name, attachment.FileType);

// Get attachment original file using document stream
using (FileStream fileStream = new FileStream("attachment.zip", FileMode.Open))
using (FileContainer fileContainer = imageHandler.GetFile(fileStream, attachment))
{
	Console.WriteLine("Attach stream lenght: {0}", fileContainer.Stream.Length);
}

GroupDocs.Viewer.Handler.Cache.ICacheDataHandler

public DateTime? GetLastModificationDate method has been removed

This property has been removed. GroupDocs.Viewer will no longer rely on document last modification date while caching or retrieving render results from cache.

GroupDocs.Viewer.Handler.ViewerHtmlHandler

public ViewerHtmlHandler(ViewerConfig viewerConfig, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerHtmlHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerHtmlHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerHtmlHandler(IFileStorage fileStorage, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerHtmlHandler(ViewerConfig viewerConfig, IFileStorage fileStorage, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

GroupDocs.Viewer.Handler.ViewerImageHandler

public ViewerImageHandler(ViewerConfig viewerConfig, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerImageHandler(IFileStorage fileStorage, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

public ViewerImageHandler(ViewerConfig viewerConfig, IFileStorage fileStorage, CultureInfo cultureInfo) constructor has been removed

This constructor has been removed. Please, instead, use the constructors that do not have CultureInfo argument.

GroupDocs.Viewer.Localization.ILocalizationHandler

public interface ILocalizationHandler has been removed

This interface is obsolete and has been removed. The exception localization feature no longer provided.

GroupDocs.Viewer.Localization.LocalizedStringKeys

public static class LocalizedStringKeys and all its members have been removed

This class and its members are obsolete and have been removed. The exception localization feature no longer provided.