THotPDF.AddLoadedLinkAnnotation Method
Appends a URI hyperlink annotation to the specified page of the loaded PDF document, which jumps to the given URL when the specified rectangular area is clicked
Declaration
procedure AddLoadedLinkAnnotation(PageIndex: Integer; ARect: THPDFRect; const AURI: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page |
ARect | The PDF user space rectangle coordinates of the link hotspot, with the origin at the bottom-left corner |
AURI | The URI string triggered when the link is clicked, e.g. https://www.loslab.com |
X2 | Input supplied to AddLoadedLinkAnnotation |
Y2 | Input supplied to AddLoadedLinkAnnotation |
AURI | External target address stored in the PDF action or link annotation |
Return value
This member returns no value
Usage notes
- The hotspot rectangle must lie within the page's MediaBox; anything outside it is clipped
- Newly added link annotations have no appearance stream and are typically displayed in the reader as a transparent clickable area
- Changes must be saved before they can become persistent