|
Foxit PDF SDK
|
Public Member Functions | |
| AccessibilityChecker (AccessibilityChecker other) | |
| Constructor, with another checker object. More... | |
| AccessibilityChecker (PDFDoc pdf_doc) throws com.foxit.sdk.PDFException | |
| Constructor. More... | |
| boolean | canCheck () throws com.foxit.sdk.PDFException |
| Check whether the current PDF document can be full checked. More... | |
| AccessibilityCheckResultItemData | changeCheckStateInResultTree (AccessibilityCheckResultItemData root_data, AccessibilityCheckResultSubItemData sub_item_data, int new_check_state) throws com.foxit.sdk.PDFException |
| Change check state in result tree. More... | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
| String | getTagTreeNodeIDByCheckResultItemID (int page_index, String item_id) throws com.foxit.sdk.PDFException |
| Get tag tree node ID by check result item ID. More... | |
| boolean | isEmpty () |
| Check whether current object is empty or not. More... | |
| AccessibilityCheckResultItemData | recheckResult (AccessibilityCheckOptions check_options, AccessibilityCheckResultItemData root_data) throws com.foxit.sdk.PDFException |
| Recheck by result root. More... | |
| AccessibilityCheckResultItemData | recheckResult (AccessibilityCheckOptions check_options, AccessibilityCheckResultItemData root_data, AccessibilityCheckResultSubItemData sub_item_data) throws com.foxit.sdk.PDFException |
| Recheck by sub item. More... | |
| AccessibilityCheckResultItemData | removeSkippedStateInResultTree (AccessibilityCheckOptions check_options, AccessibilityCheckResultItemData root_data, AccessibilityCheckResultSubItemData sub_item_data) throws com.foxit.sdk.PDFException |
| Remove skipped state in result tree. More... | |
| Progressive | startCheck (AccessibilityCheckOptions check_options, StreamCallback report_callback, AccessibilityCheckResultsCallback provider, PauseCallback pause) throws com.foxit.sdk.PDFException |
| Start check for accessibility. More... | |
| boolean | updateCheckResultReport () throws com.foxit.sdk.PDFException |
| Update check result report. More... | |
| boolean | updateCheckState (int rule_type, int check_state) throws com.foxit.sdk.PDFException |
| Update check state for a specified rule. More... | |
This class represents an accessibility checker for a PDF document: run the full accessibility check, re-check parts of the result tree, change / remove check states and update the check result report. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function common.Library.initialize with a key including "Accessibility" module.
| com.foxit.sdk.addon.accessibility.AccessibilityChecker.AccessibilityChecker | ( | PDFDoc | pdf_doc | ) | throws com.foxit.sdk.PDFException |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| com.foxit.sdk.addon.accessibility.AccessibilityChecker.AccessibilityChecker | ( | AccessibilityChecker | other | ) |
Constructor, with another checker object.
| [in] | other | Another checker object. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityChecker.canCheck | ( | ) | throws com.foxit.sdk.PDFException |
Check whether the current PDF document can be full checked.
| AccessibilityCheckResultItemData com.foxit.sdk.addon.accessibility.AccessibilityChecker.changeCheckStateInResultTree | ( | AccessibilityCheckResultItemData | root_data, |
| AccessibilityCheckResultSubItemData | sub_item_data, | ||
| int | new_check_state | ||
| ) | throws com.foxit.sdk.PDFException |
Change check state in result tree.
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data. |
| [in] | new_check_state | The new check state. |
| synchronized void com.foxit.sdk.addon.accessibility.AccessibilityChecker.delete | ( | ) |
Clean up related C++ resources immediately.
Reimplemented from com.foxit.sdk.common.Base.
| String com.foxit.sdk.addon.accessibility.AccessibilityChecker.getTagTreeNodeIDByCheckResultItemID | ( | int | page_index, |
| String | item_id | ||
| ) | throws com.foxit.sdk.PDFException |
Get tag tree node ID by check result item ID.
| [in] | page_index | The page index. |
| [in] | item_id | The check result item ID. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityChecker.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| AccessibilityCheckResultItemData com.foxit.sdk.addon.accessibility.AccessibilityChecker.recheckResult | ( | AccessibilityCheckOptions | check_options, |
| AccessibilityCheckResultItemData | root_data | ||
| ) | throws com.foxit.sdk.PDFException |
Recheck by result root.
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| AccessibilityCheckResultItemData com.foxit.sdk.addon.accessibility.AccessibilityChecker.recheckResult | ( | AccessibilityCheckOptions | check_options, |
| AccessibilityCheckResultItemData | root_data, | ||
| AccessibilityCheckResultSubItemData | sub_item_data | ||
| ) | throws com.foxit.sdk.PDFException |
Recheck by sub item.
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data of check result tree. |
| AccessibilityCheckResultItemData com.foxit.sdk.addon.accessibility.AccessibilityChecker.removeSkippedStateInResultTree | ( | AccessibilityCheckOptions | check_options, |
| AccessibilityCheckResultItemData | root_data, | ||
| AccessibilityCheckResultSubItemData | sub_item_data | ||
| ) | throws com.foxit.sdk.PDFException |
Remove skipped state in result tree.
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data. |
| Progressive com.foxit.sdk.addon.accessibility.AccessibilityChecker.startCheck | ( | AccessibilityCheckOptions | check_options, |
| StreamCallback | report_callback, | ||
| AccessibilityCheckResultsCallback | provider, | ||
| PauseCallback | pause | ||
| ) | throws com.foxit.sdk.PDFException |
Start check for accessibility.
| [in] | check_options | The check options. Please refer to AccessibilityCheckOptions . |
| [in] | report_callback | A stream callback object for report output. This can be null. |
| [in] | provider | An AccessibilityCheckResultsCallback object for check results. |
| [in] | pause | A pause object. This can be null. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityChecker.updateCheckResultReport | ( | ) | throws com.foxit.sdk.PDFException |
Update check result report.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityChecker.updateCheckState | ( | int | rule_type, |
| int | check_state | ||
| ) | throws com.foxit.sdk.PDFException |
Update check state for a specified rule.
| [in] | rule_type | The check rule type. Please refer to values starting from addon::accessibility::e_RuleTypeDocPermission and this should be one of these values. |
| [in] | check_state | The check state. Please refer to values starting from addon::accessibility::e_CheckStateNone and this should be one of these values. |