AddLinkToPage

Annotations and hotspot links, Page properties

Description

Adds a clickable hotspot rectangle to the selected page which links to another page in the same document.

Use the SetAnnotBorderColor function to change the colour of the hotspot border.

For a top-based origin, the destination position is converted using the target page height; the clickable rectangle continues to use the source page coordinates, including when the pages have different sizes

Syntax

Delphi

Function TPDFlib.AddLinkToPage(Left, Top, Width, Height: Double; Page: Integer; Position: Double; Options: Integer): Integer;

ActiveX

Function PDFlib::AddLinkToPage(Left As Double, Top As Double, Width As Double, Height As Double, Page As Long, Position As Double, Options As Long) As Long

DLL

int DLAddLinkToPage(int InstanceID, double Left, double Top, double Width, double Height, int Page, double Position, int Options);

Parameters

LeftThe left edge of the hotspot rectangle
TopThe top edge of the hotspot rectangle
WidthThe width of the hotspot rectangle
HeightThe height of the hotspot rectangle
PageThe destination page number to link to
PositionThe vertical position on the destination page to link to
OptionsSpecifies the appearance of the link: 0 = No border 1 = Draw a border

Return values

Returns 1 when the link has been added.