Foxit PDF SDK
com.foxit.sdk.pdf.TextLink类 参考
类 com.foxit.sdk.pdf.TextLink 继承关系图:
com.foxit.sdk.common.Base

Public 成员函数

 TextLink (TextLink other)
 用另一个文本链接对象的构造函数。
更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
int getEndCharIndex () throws com.foxit.sdk.PDFException
 基于PDF页面,获取当前超链接URI最后字符的索引。
更多...
 
RectFArray getRects () throws com.foxit.sdk.PDFException
 获取当前文本链接对象的文本矩形。
更多...
 
int getStartCharIndex () throws com.foxit.sdk.PDFException
 基于PDF页面,获取当前超链接URI起始字符的索引。
更多...
 
String getURI () throws com.foxit.sdk.PDFException
 获取URI字符串。
更多...
 
boolean isEmpty ()
 检查当前对象是否为空。
更多...
 

详细描述

文本链接就是文本内容,它表示到网站或互联网上资源的超文本链接, 或电子邮件地址。
此类提供从文本链接获取信息的函数。
文本链接对象由函数 PageTextLinks.getTextLink 检索。

参见
PageTextLinks

构造及析构函数说明

◆ TextLink()

com.foxit.sdk.pdf.TextLink.TextLink ( TextLink  other)

用另一个文本链接对象的构造函数。

参数
[in]other另一个文本链接对象。

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.pdf.TextLink.delete ( )

直接清除C++相关资源。

返回
无。
注解
一旦这个接口被调用,这个对象将不能再被使用。

重载 com.foxit.sdk.common.Base .

◆ getEndCharIndex()

int com.foxit.sdk.pdf.TextLink.getEndCharIndex ( ) throws com.foxit.sdk.PDFException

基于PDF页面,获取当前超链接URI最后字符的索引。

返回
最后字符的索引,从0开始。

◆ getRects()

RectFArray com.foxit.sdk.pdf.TextLink.getRects ( ) throws com.foxit.sdk.PDFException

获取当前文本链接对象的文本矩形。

返回
矩形数组。

◆ getStartCharIndex()

int com.foxit.sdk.pdf.TextLink.getStartCharIndex ( ) throws com.foxit.sdk.PDFException

基于PDF页面,获取当前超链接URI起始字符的索引。

返回
起始字符的索引,从0开始。

◆ getURI()

String com.foxit.sdk.pdf.TextLink.getURI ( ) throws com.foxit.sdk.PDFException

获取URI字符串。

文本链接的URI可以是到网站或互联网上资源的超文本链接。 它也可以是电子邮件地址。

返回
URI字符串。

◆ isEmpty()

boolean com.foxit.sdk.pdf.TextLink.isEmpty ( )

检查当前对象是否为空。

当前对象为空时,意味着当前对象无用。

返回
true 表示当前对象为空,false 表示不为空。