GetOptionalContentGroupID

Content Streams and Optional Content Groups

Description

Returns the ID of the optional content group with the specified index.

Syntax

Delphi

function TPDFlib.GetOptionalContentGroupID(Index: Integer): Integer;

ActiveX

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

DLL

int DLGetOptionalContentGroupID(int InstanceID, int Index);

Parameters

IndexThe index of the optional content group. The first group has an index of 1. Use the OptionalContentGroupCount function to determine the number of optional content groups in the document.

Return values

0The Index parameter was out of range