GetModificationFindingCount

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, an empty string or False and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Description

Returns how many classified findings are cached from the most recent AnalyzeModifications call

Syntax

Delphi

Function GetModificationFindingCount: Integer; Virtual;

ActiveX

Function PDFlib::GetModificationFindingCount() As Long

DLL

int DLGetModificationFindingCount(int InstanceID);

Return values

0No cached findings, including before the first analysis, after an analysis failure or when the documents are structurally identical
NNumber of cached findings

Remarks

Finding indexes are zero based and remain valid until the next AnalyzeModifications call

Use indexes from 0 to GetModificationFindingCount - 1 with the finding accessors

Example

for I:= 0 to PDF.GetModificationFindingCount- 1 do
  Log(PDF.GetModificationFindingDetail(I));

See also

AnalyzeModifications, GetModificationLevel, GetModificationFindingDetail