|
Foxit PDF SDK
|
Public 成员函数 | |
| TextPage (OFDPage page) | |
| 带参数的构造函数。 更多... | |
| TextPage (const TextPage &other) | |
| 构造函数,通过另一个OFD文本页面对象。 更多... | |
| ~TextPage () | |
| 析构函数。 | |
| bool | ExportToFile (const String &file_path) |
| 将文本内容导出到文件中。 更多... | |
| bool | ExportToFile (const WString &file_path) |
| 将文本内容导出到文件中。 更多... | |
| bool | ExportToFile (foxit::common::file::WriterCallback *file_writer) |
| 将文本内容导出到文件中。 更多... | |
| int | GetCharIndexAtPos (float x_pos, float y_pos, float tolerance) |
| 获取指定位置的字符索引。 更多... | |
| TextPageCharInfo | GetCharInfo (int index) |
| 获取指定索引的字符信息。 更多... | |
| int | GetCharInfoCount () |
| 获取字符信息数量。 更多... | |
| String | GetText (int start_index, int count) |
| 获取文本内容。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | operator != (const TextPage &other) const |
| 不相等操作符。 更多... | |
| TextPage & | operator= (const TextPage &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const TextPage &other) const |
| 相等操作符。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
此类表示和OFD文本页面相关的方法。
|
explicit |
带参数的构造函数。
| [in] | page | 页面对象。 |
| foxit::ofd::TextPage::TextPage | ( | const TextPage & | other | ) |
构造函数,通过另一个OFD文本页面对象。
| [in] | other | 另一个OFD文本页面对象。 |
| bool foxit::ofd::TextPage::ExportToFile | ( | const String & | file_path | ) |
将文本内容导出到文件中。
| [in] | file_path | 导出文本内容的文件路径。 |
| bool foxit::ofd::TextPage::ExportToFile | ( | const WString & | file_path | ) |
将文本内容导出到文件中。
| [in] | file_path | 导出文本内容的文件路径。 |
| bool foxit::ofd::TextPage::ExportToFile | ( | foxit::common::file::WriterCallback * | file_writer | ) |
将文本内容导出到文件中。
| [in] | file_writer | 用户实现的 common::file::WriterCallback 对象,用于保存文本内容。 |
| int foxit::ofd::TextPage::GetCharIndexAtPos | ( | float | x_pos, |
| float | y_pos, | ||
| float | tolerance | ||
| ) |
获取指定位置的字符索引。
| [in] | x_pos | 字符的X坐标位置。 |
| [in] | y_pos | 字符的Y坐标位置。 |
| [in] | tolerance | 坐标容差值。 |
| TextPageCharInfo foxit::ofd::TextPage::GetCharInfo | ( | int | index | ) |
获取指定索引的字符信息。
| [in] | index | 字符信息索引号。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPage::GetCharInfoCount 返回。 |
| int foxit::ofd::TextPage::GetCharInfoCount | ( | ) |
获取字符信息数量。
| String foxit::ofd::TextPage::GetText | ( | int | start_index, |
| int | count | ||
| ) |
获取文本内容。
| [in] | start_index | 文本内容的起始字符索引。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPage::GetCharInfoCount 返回。 |
| [in] | count | 文本内容的字符数量。有效范围:从0到(count-start_index)。 count 由函数 foxit::ofd::TextPage::GetCharInfoCount 返回。 |
| bool foxit::ofd::TextPage::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| bool foxit::ofd::TextPage::operator != | ( | const TextPage & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD文本页面对象。此函数将检查当前对象是否不等于这个对象。 |
赋值操作符。
| [in] | other | 另一个OFD文本页面对象,其值将被赋给当前对象。 |
| bool foxit::ofd::TextPage::operator== | ( | const TextPage & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD文本页面对象。此函数将检查当前对象是否等于这个对象。 |