GetOptionalContentConfigOrderItemLevel

Content Streams and Optional Content Groups

Description

Returns the hierarchical level for an item in the order array of the specified optional content configuration dictionary.

The first item has a level of 1.

Syntax

Delphi

function TPDFlib.GetOptionalContentConfigOrderItemLevel(OptionalContentConfigID, ItemIndex: Integer): Integer;

ActiveX

Function PDFlib::GetOptionalContentConfigOrderItemLevel(OptionalContentConfigID As Long, ItemIndex As Long) As Long

DLL

int DLGetOptionalContentConfigOrderItemLevel(int InstanceID, int OptionalContentConfigID, int ItemIndex);

Parameters

OptionalContentConfigIDThe first default optional content configuration dictionary has an ID of 1. Higher numbers are used for other optional content configuration dictionaries.
ItemIndexThe index number of the item in the order array. The first item has an index number of 1 and the last item has an index equal to the value returned by the GetOptionalContentConfigOrderCount function.

Return values

0The specified item could not be found The level of the specified item
Non-zero