We’re happy to announce the release of GroupDocs.Comparison for .NET 26.4, available as of April 2026.
GroupDocs.Comparison version 26.4 focuses on significant improvements to PDF document comparison, introducing new display modes, page range filtering, and a dedicated PDF options class.
Fixes and enhancements
- [Enhancement] ปรับประสิทธิภาพการเปรียบเทียบสำหรับเอกสาร PDF ให้ดียิ่งขึ้น. (COMPARISONNET-4732)
- [Bug] แก้ไขตรรกะการจัดการฟอนต์ฝังในกระบวนการเปรียบเทียบ PDF. (COMPARISONNET-4733)
- [Bug] PDF ที่มีตารางทำให้เกิดข้อยกเว้นระหว่างการประมวลผล. (COMPARISONNET-4707)
- [Feature] เพิ่มความสามารถในการสร้างผลลัพธ์การเปรียบเทียบ PDF แบบเคียงข้างกัน. (COMPARISONNET-4725)
- [Feature] เพิ่มความสามารถในการระบุช่วงหน้าสำหรับการเปรียบเทียบเอกสาร PDF. (COMPARISONNET-4731)
Major Features
Ability to produce side by side PDF comparison result
Two new display modes have been added to the new PdfCompareOptions class via the ComparisonDisplayMode enum:
SideBySide– แต่ละหน้าผลลัพธ์จะแสดงหน้าต้นฉบับและหน้าเป้าหมายเคียงข้างกัน. การลบจะแสดงทางด้านซ้าย (ด้านต้นฉบับ) และการแทรกจะแสดงทางด้านขวา (ด้านเป้าหมาย). เนื้อหาจากสองเอกสารจะไม่ทับซ้อนกัน, ทำให้โหมดนี้เหมาะสำหรับเอกสารที่แตกต่างกันอย่างมาก.Interleaved– สร้างเอกสารที่มีหน้าต交สลับกัน: หน้าคี่มาจากเอกสารต้นฉบับ (แสดงการลบ) และหน้าคู่มาจากเอกสารเป้าหมาย (แสดงการแทรก). เปิดผลลัพธ์ในโปรแกรมดู PDF ที่มีโหมด “Two Page View” เพื่อดูคู่หน้าต้นฉบับ/เป้าหมายเคียงข้างกัน.
Note: The previous default behavior (a single merged document with highlighted insertions and deletions) is preserved as
ComparisonDisplayMode.Inlineand remains the default value.
Ability to specify pages range for PDF documents comparison
You can now limit PDF comparison to a specific range of pages using the PagesSetup property on PdfCompareOptions. When not set, all pages are compared as before.
using (var comparer = new Comparer("source.pdf"))
{
comparer.Add("target.pdf");
var options = new PdfCompareOptions()
{
CompareImagesPdf = true,
DisplayMode = PdfCompareOptions.ComparisonDisplayMode.SideBySide,
PagesSetup = new PagesSetup()
{
StartPage = 3,
EndPage = 10
}
};
comparer.Compare("result.pdf", options);
}
Public API changes
A new PdfCompareOptions class has been introduced for PDF-specific comparison configuration, following the same pattern as WordCompareOptions introduced in version 26.2.
-
PdfCompareOptions(namespaceGroupDocs.Comparison.Options) — inherits fromCompareOptionsand adds PDF-only settings:- DisplayMode – ควบคุมวิธีการจัดวางเอกสารผลลัพธ์การเปรียบเทียบ PDF; ค่าเริ่มต้นคือ
Inline(พฤติกรรมเดิม) - PagesSetup – ระบุช่วงหน้าที่จะเปรียบเทียบ; หากเป็น
nullจะเปรียบเทียบทุกหน้า - CompareImagesPdf – กำหนดว่าจะเปรียบเทียบรูปภาพในเอกสาร PDF หรือไม่
- AnnotationAuthorName – ชื่อผู้เขียนที่ใช้สำหรับคำอธิบายเมื่อ
DisplayModeถูกตั้งเป็นInterleaved - ImagesInheritanceMode – ระบุแหล่งที่มาของการสืบทอดรูปภาพเมื่อการเปรียบเทียบรูปภาพถูกปิดใช้งาน
- DisplayMode – ควบคุมวิธีการจัดวางเอกสารผลลัพธ์การเปรียบเทียบ PDF; ค่าเริ่มต้นคือ
-
PdfCompareOptions.ComparisonDisplayModeenum values:Inline(default) – พฤติกรรมเดิม; PDF ที่รวมกันเป็นไฟล์เดียวโดยเน้นการลบและการแทรกด้วยสีต่างกันSideBySide(new) – หน้าต้นฉบับและหน้าเป้าหมายปรากฏเคียงข้างกันในแต่ละหน้าผลลัพธ์; ไม่มีการทับซ้อนของเนื้อหาInterleaved(new) – หน้าต交สลับกันระหว่างต้นฉบับและเป้าหมาย; เหมาะที่สุดเมื่อดูในโปรแกรม PDF ที่รองรับ “Two Page View”
How to get the update
You can get the latest version from NuGet or download it directly from the GroupDocs website.
NuGet
GroupDocs.Comparison for .NET 26.4
Direct download
Download assemblies for both .NET and .NET Framework from the GroupDocs.Comparison for .NET 26.4 page.