GroupDocs.Viewer for .NET 21.2 Release Notes

Major Features

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

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-3070Render spreadsheet by page breaksFeature
VIEWERNET-3068Render presentations documents to single page HTMLFeature
VIEWERNET-3050Add support of rendering text in PDF files as imagesFeature
VIEWERNET-3043Support for PC3 file printer configuration when rendering CAD formatsFeature
VIEWERNET-3039Support MaxHeight and MaxWidth options when rendering to JPG/PNGFeature
VIEWERNET-3009Support play/stop animation when rendering APNG imagesFeature
VIEWERNET-3006Time Format and TimeZone setting when rendering Email documents to HTMLFeature
VIEWERNET-3003Add Email Mailbox File (.mbox) file-format supportFeature
VIEWERNET-2316Support play/stop animation when rendering GIF imagesFeature
VIEWERNET-3069Visio to PDF rendering - output lacks a lot of textBug
VIEWERNET-3058Replacing the default font doesn’t work on LinuxBug
VIEWERNET-3057Missing Polish signs in EML to HTML or PDF renderingBug
VIEWERNET-3055Replacing the default font doesn’t work on LinuxBug
VIEWERNET-3047Incorrect image dimensions for VCF filesBug
VIEWERNET-3046Freezes on format-detectionBug
VIEWERNET-3045Incorrect image dimensions for Archive filesBug
VIEWERNET-3044GetViewInfo returns small page dimensions for Visio filesBug
VIEWERNET-3002"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering VSDX file”Bug
VIEWERNET-2996"Image export failed.” exception when rendering EMF file”Bug
VIEWERNET-2990"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering DWG file”Bug
VIEWERNET-2989"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering DXF file”Bug
VIEWERNET-2985Performance drop in rendering word processing files to HTMLBug
VIEWERNET-2936Specific DWF file is rendering too long.Bug
VIEWERNET-2929"Arithmetic operation resulted in an overflow.” exception when rendering DOCX file”Bug
VIEWERNET-2928"Could not load file. File is corrupted or damaged.” exception when rendering DXF file”Bug
VIEWERNET-2922"Image export failed.” exception when rendering JP2 file”Bug
VIEWERNET-2919Parameter is not valid. for cdr fileBug
VIEWERNET-2910"Could not load file. File is corrupted or damaged.” exception when rendering IFC file”Bug
VIEWERNET-2909"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering CMX file”Bug
VIEWERNET-2876The image is blank when rendering a specific DWG file to PNG in Linux (docker container).Bug
VIEWERNET-2875The output image is blank when converting a specific STL file to PNG.Bug
VIEWERNET-2874Jpeg quality option does not work when rendering CAD files to JPEG in Linux docker containers.Bug
VIEWERNET-2864"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering DWF file”Bug
VIEWERNET-2863Parameter is not valid. for AutoCad fileBug
VIEWERNET-2862"CAD document rendering failed.Please check that CadOptions sizing options do not have too low or too high values.” exception when rendering DGN file”Bug
VIEWERNET-2860"The number greater than zero is expected. (Parameter ‘width’)” exception when rendering DWF file”Bug
VIEWERNET-2853"Could not load file. File is corrupted or damaged.” exception when rendering IFC file”Bug
VIEWERNET-2847"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2846"Could not load file. File is corrupted or damaged.” exception when rendering IFC file”Bug
VIEWERNET-2840"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2837"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2836"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2835"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2834"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2833"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2816"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-2762"Certain Excel to HTML conversion, alignment issues”Bug
VIEWERNET-2752"GroupDocs.Viewer throws GroupDocsViewerException “Image export failed” exception when rendering specific Corel Metafile exchange (cmx) file”Bug
VIEWERNET-2713Could not load file. File is corrupted or damaged when rendering DWF fileBug
VIEWERNET-2689StackOverFlow errorBug
VIEWERNET-2475Exception: Failed to render CAD document into PDFBug

Public API and Backward Incompatible Changes

Public API Changes

public interface IMaxSizeOptions interface added to GroupDocs.Viewer.Options. This interface provides MaxSize options for rendering to PNG/JPG output.


/// <summary>
/// Limits of image size options interface. 
/// </summary>
public interface IMaxSizeOptions
{
   /// <summary>
   /// Max width of an output image in pixels.
   /// </summary>
   int MaxWidth { get; set; }

   /// <summary>
   /// Max height of an output image in pixels.
   /// </summary>
   int MaxHeight { get; set; }
}

GroupDocs.Viewer.FileType

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

/// <summary>
/// Email Mailbox File (.mbox)
/// Learn more about this file format <a href="https://fileinfo.com/extension/mbox">here</a>. 
/// </summary>
public static readonly FileType MBOX = new FileType("Email Mailbox File", ".mbox");

GroupDocs.Viewer.Options

Fields were added to GroupDocs.Viewer.Options.PngViewOptions class and to GroupDocs.Viewer.Options.JpgViewOptions class that reflects MaxSize options for rendering to PNG/JPG output that we’re supporting starting from v21.2. Both classes now implement inteface IMaxSizeOptions.

/// <summary>
/// Max width of an output image in pixels.
/// </summary>
public int MaxWidth { get; set; }

/// <summary>
/// Max height of an output image in pixels.
/// </summary>
public int MaxHeight { get; set; }

GroupDocs.Viewer.Options.SpreadsheetOptions class

GroupDocs.Viewer.Options.SpreadsheetOptions.ForRenderingByPageBreaks method was added that add support for split Excel sheets by page breaks when rendering.

GroupDocs.Viewer.Options.CadOptions class

GroupDocs.Viewer.Options.CadOptions.Pc3File property was added that add support to apply PC3 configuration plotter file when rendering CAD files.

GroupDocs.Viewer.Options.EmailOptions class

Properties were added to GroupDocs.Viewer.Options.EmailOptions class that adds support to set time zone offset and date-time format when rendering E-mail messages to HTML.

/// <summary>
/// Time Format (can be include TimeZone)
/// for example: 'MM d yyyy HH:mm tt', if not set - current system format is used
/// </summary>
public string DateTimeFormat { get; set; }

/// <summary>
/// Message time zone offset
/// </summary>
public TimeSpan TimeZoneOffset { get; set; }

Behaviour changes

Now when rendering APNG and GIF to HTML you will get a page with an animated picture. If an animated file contains only one frame, HTML with static image will be generated.

Animated PNG in HTML