Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfVisualComparisonReport

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

Rendered visual and structural comparison report for two PDFs.

Inheritance

  • Object
  • PdfVisualComparisonReport

Usage

Explore 2 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.

Returned or exposed by 2

Methods

ToHtmlGallery 2 overloads
public String ToHtmlGallery(String? title = null) #
Returns: String

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

Parameters

title System.String? = null optionalposition: 0
public String ToHtmlGallery(String? title, Int64 maximumOutputBytes, CancellationToken cancellationToken = default) #
Returns: String

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

Parameters

title System.String? requiredposition: 0
maximumOutputBytes System.Int64 requiredposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2

Properties

public Int32 ExpectedPageCount { get; } #

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

public Int32 ActualPageCount { get; } #

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

public IReadOnlyList<Int32> ExpectedPageNumbers { get; } #

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

public IReadOnlyList<Int32> ActualPageNumbers { get; } #

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

public IReadOnlyList<Int32> UnmatchedExpectedPageNumbers { get; } #

Selected expected pages with no selected actual partner.

public IReadOnlyList<Int32> 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 Boolean 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 Boolean IsMatch { get; } #

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

public Int32 DifferentPageCount { get; } #

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

public Int32 IncompletePageCount { get; } #

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