SetOptionalContentGroupVisibleByName
Content Streams and Optional Content Groups
Description
Sets the initial viewer visibility state for an optional-content group found by name
Syntax
Delphi
Function TPDFlib.SetOptionalContentGroupVisibleByName(Const GroupName: WideString; Visible: Integer): Integer;
Parameters
| GroupName | Optional-content group display name to update |
|---|---|
| Visible | 1 to include the group in the initial ON view state, 0 to place it in the initial OFF view state |
Return values
| 0 | The group was not found or the state could not be changed |
|---|---|
| 1 | The group view state was changed |
Remarks
Use FindOptionalContentGroupByName when the caller needs to cache the handle for repeated updates
See also
FindOptionalContentGroupByName, SetOptionalContentGroupVisible, SetOptionalContentGroupPrintableByName