Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfVisualComparisonReport

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Rendered visual and structural comparison report for two PDFs.

Inheritance

  • object
  • PdfVisualComparisonReport

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

ToHtmlGallery 2 overloads
public string ToHtmlGallery(string? title = null) #

Builds a self-contained HTML human-review gallery with expected, actual, and highlighted diff images.

Parameters

title string? = null optional

Returns

string
public string ToHtmlGallery(string? title, long maximumOutputBytes, CancellationToken cancellationToken = default) #

Builds a self-contained HTML gallery without allowing its UTF-8 representation to exceed the supplied byte limit.

Parameters

title string? required
maximumOutputBytes long required
cancellationToken System.Threading.CancellationToken = default optional

Returns

string

Properties

public int ExpectedPageCount { get; } #

Total pages in the expected document, including pages outside a selected comparison.

public int ActualPageCount { get; } #

Total pages in the actual document, including pages outside a selected comparison.

public IReadOnlyList<int> ExpectedPageNumbers { get; } #

Ordered expected source pages in the comparison scope, including unmatched pages and repeats.

public IReadOnlyList<int> ActualPageNumbers { get; } #

Ordered actual source pages in the comparison scope, including unmatched pages and repeats.

public IReadOnlyList<int> UnmatchedExpectedPageNumbers { get; } #

Selected expected pages with no selected actual partner.

public IReadOnlyList<int> UnmatchedActualPageNumbers { get; } #

Selected actual pages with no selected expected partner.

public string ExpectedSha256 { get; } #

SHA-256 of the exact expected PDF snapshot compared.

public string ActualSha256 { get; } #

SHA-256 of the exact actual PDF snapshot compared.

public bool IsSelectedScope { get; } #

True when the caller explicitly selected a comparison scope.

public IReadOnlyList<PdfVisualPageComparison> Pages { get; } #

Per-page comparisons in selected sequence order, retaining original source page numbers.

public IReadOnlyList<string> StructuralDifferences { get; } #

Document/page structural differences.

public bool IsMatch { get; } #

True when all compared pages have complete managed renderings that satisfy thresholds and no structural differences remain.

public int DifferentPageCount { get; } #

Compared page pairs with complete managed renderings that fail the configured visual thresholds.

public int IncompletePageCount { get; } #

Compared page pairs whose managed rendering is incomplete, so their pixels cannot establish a visual match or difference.