Foxit PDF RDK
TextLink Class Reference
Inheritance diagram for TextLink:
NativeObjectWrapper

Public Member Functions

 GetEndCharIndex ()
 Get the index of last character of current hyper-link URI, based on PDF page. More...
 
 GetRects ()
 Get the text rectangles of current text link object. More...
 
 GetStartCharIndex ()
 Get the index of start character of current hyper-link URI, based on PDF page. More...
 
 GetURI ()
 Get URI string. More...
 
 IsEmpty ()
 Check whether current object is empty or not. More...
 
- Public Member Functions inherited from NativeObjectWrapper
 constructor (r)
 
 GetPointerAsNumber ()
 

Detailed Description

A text link is just text content, which represents a hypertext link to a website or a resource on the internet, or an e-mail address.
This class offers functions to get information from the text link.
A text link object is retrieved by function PageTextLinks.GetTextLink.

See also
PageTextLinks
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

Member Function Documentation

◆ GetEndCharIndex()

TextLink.GetEndCharIndex ( )

Get the index of last character of current hyper-link URI, based on PDF page.

Returns
The index of last character, starting from 0.

◆ GetRects()

TextLink.GetRects ( )

Get the text rectangles of current text link object.

Returns
An array of rectangles.

◆ GetStartCharIndex()

TextLink.GetStartCharIndex ( )

Get the index of start character of current hyper-link URI, based on PDF page.

Returns
The index of start character, starting from 0.

◆ GetURI()

TextLink.GetURI ( )

Get URI string.

A text link's URI can be a hypertext link to a website or a resource on the internet. It can also be an e-mail address.

Returns
URI string.

◆ IsEmpty()

TextLink.IsEmpty ( )

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
true means current object is empty, while false means not.