GroupDocs.Viewer for .NET 21.9 Release Notes

Major Features

There are 39 features, improvements, and bug-fixes in this release, most notable are:

  • Add syntax highlight to programming language formats
  • Support cancellation: Improvement for Visio documents loading cancellation
  • Add Power shell script (.PS1) file-format support
  • Add Power shell script module (.PSM1) file-format support
  • Add Power shell script module manifest (.PSD1) file-format support
  • Render PSD files with custom fonts
  • Preserve original image format when converting JPEG to HTML with embedded resources

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-1988Add syntax highlight to programming language formatsFeature
VIEWERNET-2432Support cancellationFeature
VIEWERNET-3491Save external resources for text files rendered to HTML.Feature
VIEWERNET-3492Add Power shell script (.PS1) file-format supportFeature
VIEWERNET-3493Add Power shell script module (.PSM1) file-format supportFeature
VIEWERNET-3496Add Power shell script module manifest (.PSD1) file-format supportFeature
VIEWERNET-1972Convert PSD with custom fontsImprovement
VIEWERNET-3494Preserve original image format when converting JPEG to HTML with embedded resourcesImprovement
VIEWERNET-2252Some Chinese fonts cannot be displayed properlyBug
VIEWERNET-2462“File is corrupted or damaged” exception when rendring DWF file"Bug
VIEWERNET-2479Exception is thrown when loading VSDX fileBug
VIEWERNET-2694When watermark is added output HTML doesn’t ends properlyBug
VIEWERNET-2957Visio to PDF rendering issueBug
VIEWERNET-2992“Could not load file. File is corrupted or damaged.” exception when rendering IFC file"Bug
VIEWERNET-3133“Could not load file. File is corrupted or damaged.” exception when rendering CDR file"Bug
VIEWERNET-3138Specific IFC files failed to openBug
VIEWERNET-3231“Parameter is not valid.” exception when rendering VSD file"Bug
VIEWERNET-3275“Parameter is not valid.” exception when rendering VSDX file"Bug
VIEWERNET-3287“Could not load file. File is corrupted or damaged.” exception when rendering TGA file to HTML"Bug
VIEWERNET-3325NotImplementedException when viewing certain ZIP fileBug
VIEWERNET-3401“Parameter is not valid.” exception when rendering VSDX file"Bug
VIEWERNET-3404“The given key ‘1680’ was not present in the dictionary.” exception when rendering MPP file"Bug
VIEWERNET-3411“The given key ‘188744169’ was not present in the dictionary.” exception when rendering MPP file"Bug
VIEWERNET-3442A generic error occurred in GDI+ when converting PDF to HTMLBug
VIEWERNET-3495[Angular UI] Duplicate loadDocumentPage requests when opening a fileBug
VIEWERNET-3497[Angular UI] Methods loadThumbnails and loadDocumentPage return the same dataBug
VIEWERNET-3506Wrong call for Resize on specific DWG fileBug
VIEWERNET-3511Image loading failed exception thrown for specific DXF fileBug
VIEWERNET-3514Exception when converting Excel with hidden worksheets to HTML in .NETBug
VIEWERNET-3517ImageSaveException on an attempt to convert specific PSD to PNGBug
VIEWERNET-3518Exception when trying to convert particular Psd file to pngBug
VIEWERNET-3529Bad representation after conversionBug
VIEWERNET-3531Git to HTML -> Out of Memory exceptionBug
VIEWERNET-3534Error when rendering specific DICOM file.Bug
VIEWERNET-3559Cannot load specific Xps fileBug
VIEWERNET-3560Cannot load specific Xps file.Bug
VIEWERNET-3571Document viewer API only Renders the Deleted Folder of a PST File in .NETBug
VIEWERNET-3581Could not load file or assembly exception when targeting .NET 6Bug
VIEWERNET-3489Invalid column index when rendering XLSM to PDFBug

Public API Changes

GroupDocs.Viewer.FileType

Fields were added to GroupDocs.Viewer.FileType class that reflects new file formats that we’re supporting starting from v21.9.

/// <summary>
/// PowerShell script module (.psm1) a file format for PowerShell module scripts.
/// Learn more about this file format <a href="https://docs.fileformat.com/">here</a>.
/// </summary>
public static readonly FileType PSM1 = new FileType("Windows PowerShell script module", ".psm1");

/// <summary>
/// PowerShell script file (.ps1) a file format for Windows PowerShell Cmdlet files.
/// Learn more about this file format <a href="https://docs.fileformat.com/">here</a>.
/// </summary>
public static readonly FileType PS1 = new FileType("Windows PowerShell Cmdlet File ", ".ps1");

/// <summary>
/// PowerShell script module manifest (.psd1) a file format for PowerShell module manifest scripts.
/// Learn more about this file format <a href="https://docs.fileformat.com/">here</a>.
/// </summary>
public static readonly FileType PSD1 = new FileType("Windows PowerShell script module manifest", ".psd1");

Behavior changes

Now when rendering source code files, they will be colorized. This feature is supported for following files: C++, CSS, HTML, JAVA, Javascript, JSON, PHP, SQL, XML, PSM1, PS1, PSD1

C# colorizing example:
C# coloring

SQL colorizing example:
SQL coloring