GetCompareFindingCount

Diagnostics

Description

Returns how many findings the most recent comparison produced

Syntax

Delphi

Function GetCompareFindingCount: Integer;

Return values

NNumber of cached findings, 0 before the first comparison

Remarks

Findings remain valid until the next CompareWith call. Each finding exposes a kind (1 added, 2 removed, 3 changed, 4 page-count difference, 5 text changed, 6 identical), the affected object number where applicable, and a human-readable detail.

Example

for I:= 0 to PDF.GetCompareFindingCount- 1 do if PDF.GetCompareFindingKind(I)in [1,2,3] then Log(PDF.GetCompareFindingDetail(I));

See also

AuditObjectReachability, GetDocumentJSON