AddLinkToArticleThread

Annotations and hotspot links, page-level navigation

Description

Adds a Link annotation whose Thread action starts reading an article at a selected bead

The action stores indirect thread and bead references, avoiding ambiguity when article titles are repeated

Syntax

Function TPDFlib.AddLinkToArticleThread(Left, Top, Width, Height: Double; ThreadIndex, BeadIndex, Options: Integer): Integer;

Parameters

Left, Top, Width, HeightThe hotspot rectangle in the current origin and measurement units
ThreadIndexThe 1-based article-thread index
BeadIndexA 1-based bead index, or 0 to use the first bead
OptionsLink appearance flags shared with the other AddLinkTo* methods

Return values

Returns 1 on success or 0 when the rectangle, thread or bead is invalid

Example

ThreadIndex := PDF.AddArticleThread(Info, Beads);
PDF.SelectPage(1);
PDF.AddLinkToArticleThread(72, 720, 180, 24, ThreadIndex, 1, 1);

See also

AddArticleThread, SetOutlineArticleThread, GetAnnotActionInfo