PdfPageComparison Class

The changes of a page between two documents (PdfDocumentComparer).

public sealed class PdfPageComparison

Properties

NameDescription
ActualPageIndexGets the index of the page in the second document, or null for a page removed.
ChangesGets the kinds of changes.
DetailsGets the changes, one per line: - for an element of the first document, + for an element of the second one, ~ for an element that moved.
ExpectedPageIndexGets the index of the page in the first document, or null for a page added.
HasChangesGets a value indicating whether the page changed.

ActualPageIndex

PdfPageComparison.cs

Gets the index of the page in the second document, or null for a page removed.

public int? ActualPageIndex { get; }

Property value

int?

Gets the kinds of changes.

public PdfPageChangeKinds Changes { get; }

Property value

PdfPageChangeKinds

Gets the changes, one per line: - for an element of the first document, + for an element of the second one, ~ for an element that moved.

public IReadOnlyList<string> Details { get; }

Property value

IReadOnlyList<string>

ExpectedPageIndex

PdfPageComparison.cs

Gets the index of the page in the first document, or null for a page added.

public int? ExpectedPageIndex { get; }

Property value

int?

Gets a value indicating whether the page changed.

public bool HasChanges { get; }

Property value

bool