THotPDF.GetLoadedLinkCount Method

Returns the total number of hyperlink annotations on a specified page in the loaded PDF document, used to determine the valid index range before enumerating links

Declaration

function GetLoadedLinkCount(PageIndex: Integer): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page

Return value

Returns the number of Link subtype annotations (URI action links) on the specified page; returns 0 if there are no links or the index is invalid

Usage notes

Related APIs