GetCompareFindingCount
Diagnostics
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Description
Returns how many findings the most recent comparison produced
Syntax
Delphi
Function GetCompareFindingCount: Integer; Virtual;ActiveX
Function PDFlib::GetCompareFindingCount() As LongDLL
int DLGetCompareFindingCount(int InstanceID);Return values
| N | Number 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));