SetFormFieldOptional

Form fields, Content Streams and Optional Content Groups

Description

Adds a form field to an optional content group.

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 ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions

Return values

0The OptionalContentGroupID or Index parameter was invalid
1The field was added to the optional content group successfully