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
| Index | The index of the form field |
|---|---|
| OptionalContentGroupID | An optional-content group handle or a membership handle returned by NewOptionalContentMembership |
Return values
| 0 | The optional-content handle or Index parameter was invalid |
|---|---|
| 1 | The field was linked to the optional-content object successfully |