GetModificationLevel

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 overall classification level cached by the most recent AnalyzeModifications call

Syntax

Delphi

Function GetModificationLevel: Integer; Virtual;

ActiveX

Function PDFlib::GetModificationLevel() As Long

DLL

int DLGetModificationLevel(int InstanceID);

Return values

0No modifications, no completed analysis or the most recent analysis failed before producing findings
1LTA updates
2Form filling
3Annotations
4Unclassified changes

Remarks

The result is the maximum level among all cached findings and uses the ordering shown above from least to most permissive

AnalyzeModifications clears the cached level before every attempt, so a rejected file name or load failure leaves the value at 0

Example

PDF.AnalyzeModifications("signed_v1.pdf", "");
Level:= PDF.GetModificationLevel;

See also

AnalyzeModifications, GetModificationFindingCount, GetModificationFindingLevel