GetModificationFindingLevel

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 classification level of one cached modification finding

Syntax

Delphi

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

ActiveX

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

DLL

int DLGetModificationFindingLevel(int InstanceID, int Index);

Parameters

IndexZero-based finding index from 0 through GetModificationFindingCount - 1

Return values

0Invalid index or no modification
1LTA update
2Form filling
3Annotation change
4Unclassified change

Remarks

An invalid index returns 0, which is also the numeric value for the none classification

The overall value returned by GetModificationLevel is the maximum level among all valid findings

Example

if PDF.GetModificationFindingLevel(I)= 4 then
  Log(PDF.GetModificationFindingDetail(I));

See also

AnalyzeModifications, GetModificationFindingCount, GetModificationLevel