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

GroupNameOptional-content group display name to update
Visible1 to include the group in the initial ON view state, 0 to place it in the initial OFF view state

Return values

0The group was not found or the state could not be changed
1The group view state was changed

Remarks

Use FindOptionalContentGroupByName when the caller needs to cache the handle for repeated updates

See also

FindOptionalContentGroupByName, SetOptionalContentGroupVisible, SetOptionalContentGroupPrintableByName