GroupDocs.Viewer for .NET 21.3 Release Notes

Major Features

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

  • Support quality setting when rendering OneNote files
  • Support Width/Height/MaxWidth/MaxHeight params by GetViewInfo method

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-2314Support quality setting when rendering OneNote filesFeature
VIEWERNET-3094Support Width/Height/MaxWidth/MaxHeight params by GetViewInfo methodFeature
VIEWERNET-3132Add FilePath parameter to Attachment classFeature
VIEWERNET-3049Improve error message when loading unsupported Numbers fileImprovement
VIEWERNET-2979Specified Font is not embedded in an output HTML document.Bug
VIEWERNET-2988"Could not load file. File is corrupted or damaged.” exception when rendering DXF file”Bug
VIEWERNET-2991"Failed to open presentation with error: Error reading adjustment value: connsiteX0 = “*/ 0 w 8286” exception when rendering PPTX file”Bug
VIEWERNET-2993"Failed to open presentation with error: Object reference not set to an instance of an object.” exception when rendering PPTX file”Bug
VIEWERNET-2995"Image export failed.” exception when rendering WMF file”Bug
VIEWERNET-2997"Could not load file. File is corrupted or damaged.” exception when rendering DWF file”Bug
VIEWERNET-3000"Failed to render CAD document into PDF.” exception when rendering DXF file”Bug
VIEWERNET-3059"Could not load file. File is corrupted or damaged” exception when rendering DXF file”Bug
VIEWERNET-3061"Failed to render CAD document into PDF.” exception when rendering DXF file”Bug
VIEWERNET-3090Not all layers are rendered in specific CAD fileBug
VIEWERNET-3096The number greater than zero is expected. (Parameter ‘width’) exception when calling GetViewInfo for VSS fileBug
VIEWERNET-3097"Could not load file. File is corrupted or damaged.” exception when rendering DXF file”Bug
VIEWERNET-3101Html markup broken for specific VSD fileBug
VIEWERNET-3108Search is not working for Excel and PowerPoint files in jQuery ViewerBug
VIEWERNET-3128Shifted drawing when converting to PNG in LinuxBug
VIEWERNET-3129EML document takes too long time to render to HTMLBug
VIEWERNET-3130Incorrect headings when rendering spreadsheets by page breaksBug

Public API and Backward Incompatible Changes

Public API Changes

GroupDocs.Viewer.Results.Attachment

The FilePath field has been added to GroupDocs.Viewer.Results.Attachment class. It is used to keep a relative attachment path or attachment filename.

/// <summary>
/// Attachment relative path e.g. <example>folder/file.docx</example> or filename when the file is located in the root of an archive, in e-mail message or data file.
/// </summary>
public string FilePath { get; }

In addition, all three Attachment class constructors have been updated to accept the FilePath parameter.

GroupDocs.Viewer.Options.ViewInfoOptions

New fields have been added to GroupDocs.Viewer.Options.ViewInfoOptions class. It is used to keep a relative attachment path or attachment filename.

/// <summary>
/// Max width of output image (for PNG/JPG output only)
/// </summary>
public int MaxWidth { get; set; }

/// <summary>
/// Max height of output image (for PNG/JPG output only)
/// </summary>
public int MaxHeight { get; set; }

/// <summary>
/// Image width (for PNG/JPG output only)
/// </summary>
public int Width { get; set; }

/// <summary>
/// Image Height (for PNG/JPG output only)
/// </summary>
public int Height { get; set; }

Behavior changes

You can set output JPEG quality when converting OneNote files using the following code:

 using (Viewer viewer = new Viewer("document.one"))
 {
      JpgViewOptions options = new JpgViewOptions("result_{0}.jpg");
      options.Quality = 50;

      viewer.View(options);
 }