|
Foxit PDF SDK
|
表示用于对 PDF 文档进行标记的回调对象。
更多...
Public 成员函数 | |
| void | release () |
| 用于释放当前回调对象自身的回调函数。 更多... | |
| void | report (int category, int confidence, int page_index, RectF rect) |
| 在文档将被标记时触发的回调函数,用于获取标记 PDF 文档的结果信息。 更多... | |
静态 Public 属性 | |
| static final int | e_ReportCategoryArtifact = 1 |
| 报告类别:人工元素(Artifact)。 | |
| static final int | e_ReportCategoryFigure = 4 |
| 报告类别:图形(Figure)。 | |
| static final int | e_ReportCategoryListItem = 3 |
| 报告类别:列表项。 | |
| static final int | e_ReportCategoryParagraph = 2 |
| 报告类别:段落。 | |
| static final int | e_ReportCategoryRegion = 0 |
| 报告类别:区域。 | |
| static final int | e_ReportCategoryTable = 5 |
| 报告类别:表格。 | |
| static final int | e_ReportCategoryTableHeader = 7 |
| 报告类别:表格表头。 | |
| static final int | e_ReportCategoryTableRow = 6 |
| 报告类别:表格行。 | |
| static final int | e_ReportCategoryTocItem = 8 |
| 报告类别:目录项(TOC 项)。 | |
| static final int | e_ReportConfidenceHigh = 0 |
| 报告置信度:高。 | |
| static final int | e_ReportConfidenceLow = 4 |
| 报告置信度:低。 | |
| static final int | e_ReportConfidenceMedium = 2 |
| 报告置信度:中等。 | |
| static final int | e_ReportConfidenceMediumHigh = 1 |
| 报告置信度:中等偏高。 | |
| static final int | e_ReportConfidenceMediumLow = 3 |
| 报告置信度:中等偏低。 | |
表示用于对 PDF 文档进行标记的回调对象。
本类中的所有纯虚函数作为回调函数使用,应由用户在派生类中实现。用户也可以按需重写本类中的虚函数。
| void com.foxit.sdk.addon.accessibility.TaggedPDFCallback.release | ( | ) |
用于释放当前回调对象自身的回调函数。
| void com.foxit.sdk.addon.accessibility.TaggedPDFCallback.report | ( | int | category, |
| int | confidence, | ||
| int | page_index, | ||
| RectF | rect | ||
| ) |
在文档将被标记时触发的回调函数,用于获取标记 PDF 文档的结果信息。
此函数对用户获取标记 PDF 文档结果信息非常有用。
| [in] | category | 标记 PDF 的报告类别。请参考从 com.foxit.sdk.addon.accessibility.TaggedPDFCallback.e_ReportCategoryRegion 开始的值,本参数将为其中之一。 |
| [in] | confidence | 标记 PDF 的报告置信度。请参考从 com.foxit.sdk.addon.accessibility.TaggedPDFCallback.e_ReportConfidenceHigh 开始的值,本参数将为其中之一。 |
| [in] | page_index | 当前报告项所属的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。 |
| [in] | rect | 当前报告项的矩形区域。 |