SetOpenActionNamedDestination

Document properties, Destinations and actions

Description

Sets the document open action to jump to an existing named destination

Syntax

Delphi

Function TPDFlib.SetOpenActionNamedDestination(Const DestName: WideString): Integer;

Parameters

DestNameName of an existing destination registered with NewNamedDestination

Return values

0The named destination does not exist or the open action could not be set
1The open action was set to the named destination

Remarks

The call writes a GoTo open action whose destination is the named destination string, so page edits can keep using the name tree target

See also

NewNamedDestination, GetOpenActionDestination, GetDestName