Foxit PDF SDK
foxit::pdf::PageTextLinks类 参考
类 foxit::pdf::PageTextLinks 继承关系图:
foxit::Base

Public 成员函数

 PageTextLinks (const TextPage &page)
 从已解析的PDF页面构造函数。 更多...
 
 PageTextLinks (const PageTextLinks &other)
 用另一个 PageTextLinks 对象的构造函数。 更多...
 
 ~PageTextLinks ()
 析构函数。
 
TextLink GetTextLink (int index)
 通过索引获取文本链接对象。 更多...
 
int GetTextLinkCount ()
 获取相关PDF页面中URL格式文本的数量。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const PageTextLinks &other) const
 不等于操作符。 更多...
 
PageTextLinksoperator= (const PageTextLinks &other)
 赋值操作符。 更多...
 
bool operator== (const PageTextLinks &other) const
 等于操作符。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

在PDF页面中,某些文本内容可能表示到网站或互联网上资源的超文本链接, 或电子邮件地址。类 PageTextLinks 用于将这些类型的文本内容作为文本链接进行管理。

构造及析构函数说明

◆ PageTextLinks() [1/2]

foxit::pdf::PageTextLinks::PageTextLinks ( const TextPage page)
explicit

从已解析的PDF页面构造函数。

参数
[in]page有效的PDF页面对象。此页面应已被解析。

◆ PageTextLinks() [2/2]

foxit::pdf::PageTextLinks::PageTextLinks ( const PageTextLinks other)

用另一个 PageTextLinks 对象的构造函数。

参数
[in]other另一个 PageTextLinks 对象。

成员函数说明

◆ GetTextLink()

TextLink foxit::pdf::PageTextLinks::GetTextLink ( int  index)

通过索引获取文本链接对象。

参数
[in]index文本链接对象的索引。有效范围:从0到(count-1)。 count 由函数 PageTextLinks::GetTextLinkCount 返回。
返回
指定的文本链接对象。

◆ GetTextLinkCount()

int foxit::pdf::PageTextLinks::GetTextLinkCount ( )

获取相关PDF页面中URL格式文本的数量。

返回
文本链接的数量,如果返回-1表示构造时出错。

◆ IsEmpty()

bool foxit::pdf::PageTextLinks::IsEmpty ( ) const

检查当前对象是否为空。

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

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

◆ operator !=()

bool foxit::pdf::PageTextLinks::operator != ( const PageTextLinks other) const

不等于操作符。

参数
[in]other另一个 PageTextLinks 对象。此函数将检查当前对象是否不等于这个对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

PageTextLinks& foxit::pdf::PageTextLinks::operator= ( const PageTextLinks other)

赋值操作符。

参数
[in]other另一个 PageTextLinks 对象,其值将被赋给当前对象。
返回
对当前对象自身的引用。

◆ operator==()

bool foxit::pdf::PageTextLinks::operator== ( const PageTextLinks other) const

等于操作符。

参数
[in]other另一个 PageTextLinks 对象。此函数将检查当前对象是否等于这个对象。
返回
true 表示相等,false 表示不相等。