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 LongDLL
int DLGetCompareFindingKind(int InstanceID, int Index);Parameters
| Index | Zero-based index of a finding produced by the most recent CompareWith call; valid values range from 0 to GetCompareFindingCount - 1 |
|---|
Return values
| 0 | The index is out of range |
|---|---|
| 1..6 | 1 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;