GroupDocs.Viewer for .NET 21.5 Release Notes

Major Features

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

  • Support rendering of VCF files that contain contacts list - now VCF with multiple contacts are supported
  • Improve rendering performance for files without header - for CAD files
  • Optimize output HTML for printing
  • Render spreadsheets similar to Excel (by page breaks) by default

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-2478Optimize output HTML for printingFeature
VIEWERNET-3224Support rendering of VCF files that contain contacts listFeature
VIEWERNET-3240Improve rendering performance for files without headerImprovement
VIEWERNET-3277Render spreadsheets similar to Excel (by page breaks) by defaultImprovement
VIEWERNET-3278Add factory methods without parameters to ViewInfoOptionsImprovement
VIEWERNET-3279Add utility method to retrieve filetype by filename or filepathImprovement
VIEWERNET-3134“Failed to render CAD document into PDF.” exception when rendering DWF file"Bug
VIEWERNET-3142Long conversion time to HTML for certain DOC fileBug
VIEWERNET-3182“Arithmetic operation resulted in an overflow.” exception when rendering CDR file"Bug
VIEWERNET-3199“The added or subtracted value results in an un-representable DateTime. (Parameter ‘value’) exception” when try to get info from specific MPX file"Bug
VIEWERNET-3235Could not load file. File is corrupted or damaged exception when rendering TGABug
VIEWERNET-2471“File is corrupted or damaged” exception when rendering IFC file"Bug
VIEWERNET-2908PDF to HTML conversion: overlapping text and text out of place in the outputBug
VIEWERNET-3223Viewer - html files with erroneous css classBug
VIEWERNET-3237Empty image when rendering spreadsheet and ignoring empty rows and columnsBug

Public API and Backward Incompatible Changes

Public API Changes

GroupDocs.Viewer.FileType class

Added utility method to get FileType from filename or filepath

/// <summary>
/// Extracts file extension and maps it to file type.
/// </summary>
/// <param name="filePath">The file name or file path.</param>
/// <returns>When file type is supported returns it, otherwise returns default <see cref="Unknown"/> file type.</returns>
public static FileType FromFilePath(string filePath)

GroupDocs.Viewer.Options.BaseViewOptions class

The default value of BaseViewOptions.SpreadsheetOptions has been changed from

/// <summary>
/// The spreadsheet files view options.
/// </summary>
public SpreadsheetOptions SpreadsheetOptions { get; set; } = SpreadsheetOptions.ForSplitSheetIntoPages(40);

to

/// <summary>
/// The spreadsheet files view options.
/// </summary>
public SpreadsheetOptions SpreadsheetOptions { get; set; } = SpreadsheetOptions.ForRenderingByPageBreaks();

We’ve changed default value to make the output similar to the output you can get when printing spreadsheet in Excel. See Render spreadsheets by page breaks for more details.

GroupDocs.Viewer.Options.ViewInfoOptions class

Added three factory methods without parameters:

/// <summary>
/// Initializes new instance of <see cref="ViewInfoOptions"/> class to retrieve information about view when rendering into HTML.
/// </summary>
/// <returns>New instance of <see cref="ViewInfoOptions"/> class.</returns>
public static ViewInfoOptions ForHtmlView()

/// <summary>
/// Initializes new instance of <see cref="ViewInfoOptions"/> class to retrieve information about view when rendering into JPG.
/// </summary>
/// <returns>New instance of <see cref="ViewInfoOptions"/> class.</returns>
public static ViewInfoOptions ForJpgView()


/// <summary>
/// Initializes new instance of <see cref="ViewInfoOptions"/> class to retrieve information about view when rendering into PNG.
/// </summary>
/// <returns>New instance of <see cref="ViewInfoOptions"/> class.</returns>
public static ViewInfoOptions ForPngView()

GroupDocs.Viewer.Options.HtmlViewOptions class

GroupDocs.Viewer.Options.HtmlViewOptions.ForPrinting property was added that add optimize output HTML for printing support.

Removed obsolete members