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

NamePurpose
PageIndexZero-based index of the target page
ARectThe PDF user space rectangle coordinates of the link hotspot, with the origin at the bottom-left corner
AURI点击链接时触发的 URI 字符串,如 https://example.commailto:info@example.com

Usage notes

Related APIs