AddLinkToWeb
Annotations and hotspot links
Description
Adds a clickable hotspot rectangle to the selected page which links to a URL on the internet. This can also be used to link to an e-mail address.
Use the SetAnnotBorderColor function to change the color of the hotspot border.
Syntax
Delphi
function TPDFlib.AddLinkToWeb(Left, Top, Width, Height: Double; Const Link: WideString; Options: Integer): Integer;ActiveX
Function PDFlib::AddLinkToWeb(Left As Double, Top As Double, Width As Double, Height As Double, Link As String, Options As Long) As LongDLL
int DLAddLinkToWeb(int InstanceID, double Left, double Top, double Width, double Height, wchar_t * Link, int Options);Parameters
| Left | The left edge of the hotspot rectangle The top edge of the hotspot rectangle |
|---|---|
| Top | |
| Width | The width of the hotspot rectangle |
| Height | The height of the hotspot rectangle |
| Link | The URL to link to. Some examples: "http://www.example.com/" "mailto:info@example.com" |
| Options | Specifies the appearance of the link: 0 = No border 1 = Draw a border |