SetOutlineNamedDestination
Annotations and hotspot links, Outlines
Description
Sets the destination of the specified outline item (bookmark) to a named destination.
Setting a named destination replaces any previous action on the bookmark, including a web link or JavaScript action, so the bookmark does not retain competing action and destination entries
Syntax
Delphi
Function TPDFlib.SetOutlineNamedDestination(OutlineID: Integer; Const DestName: WideString): Integer;
ActiveX
Function PDFlib::SetOutlineNamedDestination(OutlineID As Long, DestName As String) As Long
DLL
int DLSetOutlineNamedDestination(int InstanceID, int OutlineID, const wchar_t* DestName);
int DLSetOutlineNamedDestinationA(int InstanceID, int OutlineID, const char* DestName);
Parameters
| OutlineID | The ID of the outline as returned by the NewOutline function. Alternatively, use the GetOutlineID function to get a valid outline ID. |
|---|---|
| DestName | The named destination. |
Return values
| 0 | The OutlineID was invalid |
|---|---|
| 1 | Success |