GetModificationFindingDetail

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 human-readable detail text for one cached modification finding

Syntax

Delphi

Function GetModificationFindingDetail(Index: Integer): WideString; Virtual;

ActiveX

Function PDFlib::GetModificationFindingDetail(Index As Long) As String

DLL

const wchar_t* DLGetModificationFindingDetail(int InstanceID, int Index);
const char* DLGetModificationFindingDetailA(int InstanceID, int Index);

Parameters

IndexZero-based finding index from 0 to GetModificationFindingCount - 1

Return values

TextDescription of the change and its classification
Empty stringThe index is outside the cached finding range

Remarks

Detail text is diagnostic output intended for logs and reports

An invalid index returns an empty string without changing LastErrorCode

Example

for I:= 0 to PDF.GetModificationFindingCount- 1 do
  Memo.Lines.Add(PDF.GetModificationFindingDetail(I));

See also

AnalyzeModifications, GetModificationFindingLevel, GetModificationFindingObjNum