AddActionNextSetOCGState

Actions, optional content

Description

Appends a typed SetOCGState action to an existing action /Next chain

Syntax

Function TPDFlib.AddActionNextSetOCGState(ActionID: Integer; Const States: Array Of TPDFlibActionOCGStateInfo; PreserveRB: Integer): Integer;

Return values

Returns 1 on success or 0 without changing the chain when an action, group handle, preference or PDF/A-1 mode is invalid

Remarks

The action supports oscOn, oscOff and oscToggle entries in any order and permits the same group to appear more than once

See also

SetActionOCGStates, SetFormFieldOCGStateAction, GetActionNextInfo