GetModificationFindingObjNum
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 the indirect object number associated with one cached modification finding
Syntax
Delphi
Function GetModificationFindingObjNum(Index: Integer): Integer; Virtual;ActiveX
Function PDFlib::GetModificationFindingObjNum(Index As Long) As LongDLL
int DLGetModificationFindingObjNum(int InstanceID, int Index);Parameters
| Index | Zero-based finding index from 0 to GetModificationFindingCount - 1 |
|---|
Return values
| 0 | Invalid index or a document-level finding without an indirect object number |
|---|---|
| N | Positive PDF indirect object number associated with the finding |
Remarks
Object numbers identify objects in the compared document revision and are not finding indexes
Use GetModificationFindingDetail when a finding has no object number or when a human-readable description is required
Example
ObjNum:= PDF.GetModificationFindingObjNum(I);
if ObjNum> 0 then LogObject(ObjNum);See also
AnalyzeModifications, GetModificationFindingCount, GetModificationFindingDetail