GroupDocs.Viewer For .NET 16.11 Release Notes
This page contains release notes for GroupDocs.Viewer for .NET 16.11.0.
Major Features
There are 2 new features and 15 improvements and fixes in this regular monthly release. The most notable are:
- Ability to set default font when rendering Email documents
- OTP (OpenDocument Presentation Template) file format rendering support
- Improved public API of ViewerConfig class and IInputDataHandler interface
- When rendering two documents in one browser page CSS classes are not overriding
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
VIEWERNET-955 | Ability to set default font when rendering Email documents | New Feature |
VIEWERNET-849 | Add OTP format support | New Feature |
VIEWERNET-966 | Improve public API of ViewerConfig class | Improvement |
VIEWERNET-963 | Improve rendering CAD (dwg, dxf) documents to Pdf | Improvement |
VIEWERNET-957 | Improve public API of IInputDataHandler interface | Improvement |
VIEWERNET-927 | Display HTML pages of two different documents in the same page in browser without overriding css classes | Improvement |
WEB-2447 | The background is missed for IE 11 | Bug |
WEB-2109 | Special characters like accents, umlauts and circumflex are displayed incorrectly when saving specific PDF to HTML | Bug |
WEB-1398 | A ligature is shown incorrectly in HTML produced from PDF | Bug |
VIEWERNET-979 | Invalid characters while rendering Word document into HTML | Bug |
VIEWERNET-958 | Throws unsupported file format exception when loading specific doc file | Bug |
VIEWERNET-956 | Getting exception “File type ‘doc’ is not supported” | Bug |
VIEWERNET-949 | Parameter is not valid exception when rendering xlsx to image | Bug |
VIEWERNET-877 | Extra blank page created when convering dwg to pdf. | Bug |
VIEWERNET-848 | Failed to convert wmf file to image in Asp.Net application. | Bug |
VIEWERNET-847 | Incorrect Rendering of Radio Buttons, Checkboxes and their Label into Html | Bug |
VIEWERNET-775 | No text when converting Pdf to Html with FontAbsorber | Bug |
Public API and Backward Incompatible Changes
LoadFileTree method is obsolete starting from version 16.11.0 and it is replaced with GetFileList method.
GetFileList method retrieves files and directories for specified path (or GroupDocs.Viewer’s storage path) and works identically in ViewerImageHandler and ViewerHtmlHandler
GetFileList method retrieves files and directories for specified path (or GroupDocs.Viewer’s storage path) and works identically in ViewerImageHandler and ViewerHtmlHandler
Ability to set default font when rendering Email documents
Default font name may be specified in this cases:
- You want to generally specify the default font to fall back on if a particular font in a document cannot be found during rendering.
- Your document uses fonts that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
config.DefaultFontName = "Calibri";
Improved Public APIs
- Improve public API of ViewerConfig classPublic API changes:
- Class GroupDocs.Viewer.Config.ViewerConfig property public string TempFolderName marked as ‘Obsolete’
- Class GroupDocs.Viewer.Config.ViewerConfig property public string TempPath marked as ‘Obsolete’
- Improve public API of IInputDataHandler interface Public API changes:
- Class ViewerImageHandler/ViewerHtmlHandler method FileListContainer GetFileList() added
- Class_ViewerImageHandler/ViewerHtmlHandler_ method GetFileList(FileListOptions fileListOptions) added
- Class ViewerImageHandler/ViewerHtmlHandler method FileTreeContainer LoadFileTree() marked as ‘Obsolete’
- Class ViewerImageHandler/ViewerHtmlHandler method FileTreeContainer LoadFileTree(FileTreeOptions fileTreeOptions) marked as ‘Obsolete’
- Class GroupDocs.Viewer.Domain.Containers.FileTreeContainer marked as ‘Obsolete’
- Class GroupDocs.Viewer.Domain.Options.FileTreeOptions marked as ‘Obsolete’
- Interface GroupDocs.Viewer.Handler.Input.IInputDataHandler method SaveDocument(CachedDocumentDescription cachedDocumentDescription, Stream documentStream) marked as ‘Obsolete’
- Interface GroupDocs.Viewer.Handler.Input.IInputDataHandler method LoadFileTree(FileTreeOptions fileTreeOptions) marked as ‘Obsolete’
- Interface GroupDocs.Viewer.Handler.Input.IInputDataHandler method void AddFile(string guid, Stream content) added
- Interface GroupDocs.Viewer.Handler.Input.IInputDataHandler method List
GetEntities(string path) added
Get file list
LoadFileTree method is obsolete starting from version 16.11.0 and it is replaced with GetFileList method.
GetFileList method retrieves files and directories for specified path (or GroupDocs.Viewer’s storage path) and works identically in ViewerImageHandler and ViewerHtmlHandler
Load file list for ViewerConfig.StoragePath
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Load file list for ViewerConfig.StoragePath
FileListContainer container = imageHandler.GetFileList();
foreach (var node in container.Files)
{
if (node.IsDirectory)
{
Console.WriteLine("Guid: {0} | Name: {1} | LastModificationDate: {2}",
node.Guid,
node.Name,
node.LastModificationDate);
}
else
Console.WriteLine("Guid: {0} | Name: {1} | Document type: {2} | File type: {3} | Extension: {4} | Size: {5} | LastModificationDate: {6}",
node.Guid,
node.Name,
node.DocumentType,
node.FileType,
node.Extension,
node.Size,
node.LastModificationDate);
}
Load file list for custom path
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Load file list for custom path
FileListOptions options = new FileListOptions(@"D:\");
FileListContainer container = imageHandler.GetFileList(options);
foreach (var node in container.Files)
{
if (node.IsDirectory)
{
Console.WriteLine("Guid: {0} | Name: {1} | LastModificationDate: {2}",
node.Guid,
node.Name,
node.LastModificationDate);
}
else
Console.WriteLine("Guid: {0} | Name: {1} | Document type: {2} | File type: {3} | Extension: {4} | Size: {5} | LastModificationDate: {6}",
node.Guid,
node.Name,
node.DocumentType,
node.FileType,
node.Extension,
node.Size,
node.LastModificationDate);
}
Load file list for custom path with order
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Load file list sorted by Name and ordered Ascending for custom path
FileListOptions options = new FileListOptions(@"D:\", FileListOptions.FileListSortBy.Name, FileListOptions.FileListOrderBy.Ascending);
FileListContainer container = imageHandler.GetFileList(options);
foreach (var node in container.Files)
{
if (node.IsDirectory)
{
Console.WriteLine("Guid: {0} | Name: {1} | LastModificationDate: {2}",
node.Guid,
node.Name,
node.LastModificationDate);
}
else
Console.WriteLine("Guid: {0} | Name: {1} | Document type: {2} | File type: {3} | Extension: {4} | Size: {5} | LastModificationDate: {6}",
node.Guid,
node.Name,
node.DocumentType,
node.FileType,
node.Extension,
node.Size,
node.LastModificationDate);
}