GetCompareFindingKind

诊断

需要 Small Business 版。在 Delphi、C++Builder 和 Lazarus 代码中,请将库创建为 TPDFlibSmallBusiness(单元 PDFlibSmallBusiness)或 TPDFlibEnterprise;Small Business 版和 Enterprise 版的 DLL 与 ActiveX 构建原样提供该类。Single 版保留此方法,它返回 0,并将 LastErrorCode 设置为 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

描述

返回一条比较发现的种类

语法

Delphi

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

ActiveX

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

DLL

int DLGetCompareFindingKind(int InstanceID, int Index);

参数

Index最近一次 CompareWith 调用产生的发现的索引,从 0 开始;有效范围从 0 到 GetCompareFindingCount - 1

返回值

0Index 超出范围
1..61 对象新增,2 对象移除,3 对象更改,4 页数差异,5 文本更改,6 文档完全相同

备注

Kind 值对应 CompareWith 中描述的新增/移除/更改/页数/文本/相同分类

示例

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

另请参阅

AuditObjectReachability, GetDocumentJSON