We’re happy to announce the release of GroupDocs.Comparison for .NET 26.1, available as of January 2026.
GroupDocs.Comparison version 26.1 includes multiple improvements to strengthen performance and stability.

Исправления и улучшения

  • [Enhancement] Улучшена функция предварительного просмотра документов. (COMPARISONNET-4511)
  • [Enhancement] Добавлены настройки размеров в функцию предварительного просмотра. (COMPARISONNET-4294)

Основные возможности

Добавлены настройки размеров в функцию предварительного просмотра

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

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);
}

Как получить обновление

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

NuGet

GroupDocs.Comparison for .NET 26.1

Прямое скачивание

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

Узнать больше