GetModificationFindingDetailA

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

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetModificationFindingDetail and string arguments are interpreted using the current SetAnsiMode code page

Returns the human-readable detail text for one cached modification finding

Syntax

Delphi

Function DLGetModificationFindingDetailA(InstanceID: Integer; Index: Integer): PAnsiChar;

DLL

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