We’re happy to announce the release of GroupDocs.Comparison for .NET 26.1, available as of January 2026.

我们很高兴宣布 GroupDocs.Comparison for .NET 26.1 已于 2026 年 1 月 发布。

GroupDocs.Comparison version 26.1 includes multiple improvements to strengthen performance and stability.

GroupDocs.Comparison 版本 26.1 包含多项改进,以提升性能和稳定性。

Fixes and enhancements

修复与增强

  • [Enhancement] Improved document preview functionality. (COMPARISONNET-4511)
  • [增强] 改进了文档预览功能。(COMPARISONNET-4511)
  • [Enhancement] Added dimension settings to preview functionality. (COMPARISONNET-4294)
  • [增强] 为预览功能添加了尺寸设置。(COMPARISONNET-4294)

Major Features

主要特性

Added dimension settings to preview functionality

为预览功能添加了尺寸设置

When previewing a file, you can now specify dimension settings using the Resolution option.

在预览文件时,您现在可以使用 Resolution 选项指定尺寸设置。

string sourcePath = @"source.pdf";

using (Comparer comparer = new Comparer(sourcePath))
{
    ReleasePageStream releasePageStreamDelegate = delegate (int number, Stream stream)
    {
        stream.Close();
    };

    PreviewOptions previewOptions = new PreviewOptions(pageNumber =>
    {
        string outputFolder = @"c:\Temp";
        var pagePath = Path.Combine(outputFolder, $"result_{pageNumber}.png");
        return File.Create(pagePath);
    },
    releasePageStreamDelegate);

    previewOptions.PreviewFormat = PreviewFormats.PNG;
    previewOptions.PageNumbers = new int[] {2,3};
    previewOptions.Resolution = new PreviewResolution()
    {
        HorizontalResolution = 300,
        VerticalResolution = 300
    };
    
    comparer.Source.GeneratePreview(previewOptions);
}

How to get the update

如何获取更新

You can get the latest version from NuGet or download it directly from the GroupDocs website.

您可以从 NuGet 获取最新版本,或直接从 GroupDocs 网站 下载。

NuGet

GroupDocs.Comparison for .NET 26.1

Direct download

直接下载

Download assemblies for both .NET and .NET Framework from the GroupDocs.Comparison for .NET 26.1 page.

GroupDocs.Comparison for .NET 26.1 页面下载适用于 .NET 和 .NET Framework 的程序集。

Learn more

了解更多