SetOptionalContentGroupName

Content Streams and Optional Content Groups

Description

Sets the name of the specified optional content group.

Syntax

Delphi

function TPDFlib.SetOptionalContentGroupName(OptionalContentGroupID: Integer; NewGroupName: WideString): Integer;

ActiveX

Function PDFlib::SetOptionalContentGroupName(OptionalContentGroupID As Long, NewGroupName As String) As Long

DLL

int DLSetOptionalContentGroupName(int InstanceID, int OptionalContentGroupID, wchar_t * NewGroupName);

Parameters

OptionalContentGroupIDAn ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions The new name for the OCG
NewGroupName

Return values

0The name could not be set
1The OCG's name was set successfully int OptionalContentGroupID, wchar_t * NewGroupName);