Name
page:CreateLinkAnnot -- create link annotation object
Synopsis
ant = page:CreateLinkAnnot(rect, dst)
Function
page:CreateLinkAnnot() creates a new link annotation object for the page.

The rect parameter must be a table which contains left, top, right, and bottom fields that describe a rectangle.

Inputs
rect
a rectangle of clickable area
dst
a handle of destination object to jump to
Results
ant
handle to an annotation
Errors
#HPDF_INVALID_PAGE - An invalid page handle was set.

#HPDF_FAILED_TO_ALLOC_MEM - Memory allocation failed.

#HPDF_INVALID_DESTINATION - An invalid destination handle is specified.


Show TOC