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 LongDLL
int DLSetFormFieldOptional(int InstanceID, int Index, int OptionalContentGroupID);Parameters
| Index | The index of the form field |
|---|---|
| OptionalContentGroupID | An ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions |
Return values
| 0 | The OptionalContentGroupID or Index parameter was invalid |
|---|---|
| 1 | The field was added to the optional content group successfully |