SetFormFieldOptional

Form fields, Content Streams and Optional Content Groups

Description

Links a form field to an optional-content group or membership dictionary

Syntax

Delphi

Function TPDFlib.SetFormFieldOptional(Index, OptionalContentGroupID: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldOptional(Index As Long, OptionalContentGroupID As Long) As Long

DLL

int DLSetFormFieldOptional(int InstanceID, int Index, int OptionalContentGroupID);

Parameters

IndexThe index of the form field
OptionalContentGroupIDAn optional-content group handle or a membership handle returned by NewOptionalContentMembership

Return values

0The optional-content handle or Index parameter was invalid
1The field was linked to the optional-content object successfully