NewOptionalContentGroup

Content Streams and Optional Content Groups

Description

Creates a new optional content group. The group name will appear in the Layers tab in Acrobat 6 or later.

Syntax

Delphi

function TPDFlib.NewOptionalContentGroup(Const GroupName: WideString): Integer;

ActiveX

Function PDFlib::NewOptionalContentGroup(GroupName As String) As Long

DLL

int DLNewOptionalContentGroup(int InstanceID, wchar_t * GroupName);

Parameters

GroupNameThe name of the optional content group. This name is displayed in the PDF viewer user interface.

Return values

0The new optional content group could not be created
Non-zeroAn ID that can be used as the OptionalContentGroupID parameter with the other optional content group functions