|
Foxit PDF SDK
|
Public 成员函数 | |
| LRContext (LRContext other) | |
| 构造函数,使用另一个上下文对象。 更多... | |
| LRContext (PDFPage page) throws com.foxit.sdk.PDFException | |
| 构造函数,基于PDF页面对象。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| LRStructureElement | getRootElement () throws com.foxit.sdk.PDFException |
| 获取结构树的根元素。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| Progressive | startParse (PauseCallback pause) throws com.foxit.sdk.PDFException |
| 开始解析相关PDF页面的布局识别。 更多... | |
此类可用于解析布局识别以获取根元素。
| com.foxit.sdk.addon.layoutrecognition.LRContext.LRContext | ( | PDFPage | page | ) | throws com.foxit.sdk.PDFException |
构造函数,基于PDF页面对象。
| [in] | page | 有效的PDF页面对象。 |
| com.foxit.sdk.addon.layoutrecognition.LRContext.LRContext | ( | LRContext | other | ) |
构造函数,使用另一个上下文对象。
| [in] | other | 另一个上下文对象。 |
| synchronized void com.foxit.sdk.addon.layoutrecognition.LRContext.delete | ( | ) |
| LRStructureElement com.foxit.sdk.addon.layoutrecognition.LRContext.getRootElement | ( | ) | throws com.foxit.sdk.PDFException |
获取结构树的根元素。
在调用此函数之前,请确保当前上下文对象已成功解析; 否则,无法检索有效的根结构元素。
| boolean com.foxit.sdk.addon.layoutrecognition.LRContext.isEmpty | ( | ) |
检查当前对象是否为空。
当前对象为空时,意味着当前对象无用。
| Progressive com.foxit.sdk.addon.layoutrecognition.LRContext.startParse | ( | PauseCallback | pause | ) | throws com.foxit.sdk.PDFException |
开始解析相关PDF页面的布局识别。
解析可能需要很长时间,所以Foxit PDF SDK使用渐进式处理过程来完成。 如果在解析过程中发生任何错误,此函数将抛出异常。 请参考类 com.foxit.sdk.PDFException 和从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。
| [in] | pause | 暂停回调对象,决定是否需要暂停解析过程。 这可以是 null,表示在解析过程中不暂停。 如果不是 null,它应该是用户实现的有效暂停对象。 默认值:null。 |