GetCompareFindingObjNum
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 object number of one comparison finding
Syntax
Delphi
Function GetCompareFindingObjNum(Index: Integer): Integer; Virtual;ActiveX
Function PDFlib::GetCompareFindingObjNum(Index As Long) As LongDLL
int DLGetCompareFindingObjNum(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 or the finding is document-level (page count, identical) |
|---|---|
| N | Object number in the document that owns the finding: the new document for added and changed, the old document for removed |
Remarks
Combine with GetDocumentJSON to inspect the full object content behind a finding
Example
ObjNum:= PDF.GetCompareFindingObjNum(I);