|
Foxit PDF SDK
|
Public Member Functions | |
| AccessibilityFixer (AccessibilityFixer other) | |
| Constructor, with another fixer object. More... | |
| AccessibilityFixer (PDFDoc pdf_doc) throws com.foxit.sdk.PDFException | |
| Constructor. More... | |
| boolean | canFixPermissionRules (int check_rule, boolean is_ocr_enabled) throws com.foxit.sdk.PDFException |
| Check whether permission rules can be fixed. More... | |
| boolean | canFixRules (int check_rule, int check_state) throws com.foxit.sdk.PDFException |
| Check whether specified rules can be fixed. More... | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
| boolean | fixDocumentBookmark (WStringArray roles_array) throws com.foxit.sdk.PDFException |
| Fix document bookmark. More... | |
| boolean | fixDocumentLanguage (String lang) throws com.foxit.sdk.PDFException |
| Fix document language. More... | |
| boolean | fixDocumentPermission () throws com.foxit.sdk.PDFException |
| Fix document permission. More... | |
| boolean | fixDocumentTag () throws com.foxit.sdk.PDFException |
| Fix document tag. More... | |
| boolean | fixDocumentTitle (String title, String subject, String author, String keywords) throws com.foxit.sdk.PDFException |
| Fix document title. More... | |
| String | fixDocumentTitleWithExistingTitle () throws com.foxit.sdk.PDFException |
| Fix document title with existing title. More... | |
| boolean | fixFigureAltText (AccessibilityCheckResultDetailDataArray detail_data_array) throws com.foxit.sdk.PDFException |
| Fix figure alternate text. More... | |
| boolean | fixFormFieldDescriptions () throws com.foxit.sdk.PDFException |
| Fix form field descriptions. More... | |
| boolean | fixFormFieldTagged () throws com.foxit.sdk.PDFException |
| Fix form field tagged. More... | |
| boolean | fixPageTabOrder () throws com.foxit.sdk.PDFException |
| Fix page tab order. More... | |
| boolean | isEmpty () |
| Check whether current object is empty or not. More... | |
This class represents an accessibility fixer for a PDF document: query whether rules are fixable and apply automatic fixes (document language / title / bookmark / permission / tag, page tab order, figure alternate text, form field tagging and descriptions). 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.AccessibilityFixer.AccessibilityFixer | ( | PDFDoc | pdf_doc | ) | throws com.foxit.sdk.PDFException |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| com.foxit.sdk.addon.accessibility.AccessibilityFixer.AccessibilityFixer | ( | AccessibilityFixer | other | ) |
Constructor, with another fixer object.
| [in] | other | Another fixer object. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.canFixPermissionRules | ( | int | check_rule, |
| boolean | is_ocr_enabled | ||
| ) | throws com.foxit.sdk.PDFException |
Check whether permission rules can be fixed.
| [in] | check_rule | The check rule type. |
| [in] | is_ocr_enabled | Whether OCR is enabled. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.canFixRules | ( | int | check_rule, |
| int | check_state | ||
| ) | throws com.foxit.sdk.PDFException |
Check whether specified rules can be fixed.
| [in] | check_rule | The check rule type. |
| [in] | check_state | The check state. |
| synchronized void com.foxit.sdk.addon.accessibility.AccessibilityFixer.delete | ( | ) |
Clean up related C++ resources immediately.
Reimplemented from com.foxit.sdk.common.Base.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentBookmark | ( | WStringArray | roles_array | ) | throws com.foxit.sdk.PDFException |
Fix document bookmark.
| [in] | roles_array | The roles array. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentLanguage | ( | String | lang | ) | throws com.foxit.sdk.PDFException |
Fix document language.
| [in] | lang | The language to set. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentPermission | ( | ) | throws com.foxit.sdk.PDFException |
Fix document permission.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentTag | ( | ) | throws com.foxit.sdk.PDFException |
Fix document tag.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentTitle | ( | String | title, |
| String | subject, | ||
| String | author, | ||
| String | keywords | ||
| ) | throws com.foxit.sdk.PDFException |
Fix document title.
| [in] | title | The title to set. |
| [in] | subject | The subject to set. |
| [in] | author | The author to set. |
| [in] | keywords | The keywords to set. |
| String com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixDocumentTitleWithExistingTitle | ( | ) | throws com.foxit.sdk.PDFException |
Fix document title with existing title.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixFigureAltText | ( | AccessibilityCheckResultDetailDataArray | detail_data_array | ) | throws com.foxit.sdk.PDFException |
Fix figure alternate text.
| [in] | detail_data_array | The check result detail data array. |
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixFormFieldDescriptions | ( | ) | throws com.foxit.sdk.PDFException |
Fix form field descriptions.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixFormFieldTagged | ( | ) | throws com.foxit.sdk.PDFException |
Fix form field tagged.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.fixPageTabOrder | ( | ) | throws com.foxit.sdk.PDFException |
Fix page tab order.
| boolean com.foxit.sdk.addon.accessibility.AccessibilityFixer.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.