THotPDF.GetLoadedLinkInfo Method

Reads the clickable area rectangle and target URI string of a specific hyperlink annotation on a specified page of the loaded PDF, used for extracting or verifying external links in the document

Declaration

function GetLoadedLinkInfo(PageIndex, LinkIndex: Integer; out ARect: THPDFRect; out AURI: AnsiString): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page
LinkIndexZero-based index of the link in the page's link list; the valid range is given by GetLoadedLinkCount
AURIOutput parameter, receives the URI string of the link destination
ARectReceives the link /Rect normalised in PDF user space, with Left <= Right and Bottom <= Top

Return value

Returns True when the link information is read successfully

Usage notes

Related APIs