GetCompareFindingKind

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 the kind of one comparison finding

Syntax

Delphi

Function GetCompareFindingKind(Index: Integer): Integer; Virtual;

ActiveX

Function PDFlib::GetCompareFindingKind(Index As Long) As Long

DLL

int DLGetCompareFindingKind(int InstanceID, int Index);

Parameters

IndexZero-based index of a finding produced by the most recent CompareWith call; valid values range from 0 to GetCompareFindingCount - 1

Return values

0The index is out of range
1..61 object added, 2 object removed, 3 object changed, 4 page-count difference, 5 text changed, 6 documents identical

Remarks

Kind values map onto the added/removed/changed/page-count/text/identical classification described in CompareWith

Example

if PDF.GetCompareFindingKind(I)= 3 then ChangedCount:= ChangedCount+ 1;

See also

AuditObjectReachability, GetDocumentJSON