|
Foxit PDF SDK
|
Public Member Functions | |
| ReadingOrder (PDFDoc pdf_doc) throws com.foxit.sdk.PDFException | |
| Constructor. More... | |
| ReadingOrder (ReadingOrder other) | |
| Constructor, with another reading order object. More... | |
| RectFArray | addOrderDataForRect (int page_index, RectF rect) throws com.foxit.sdk.PDFException |
| Add order data for selected rect. More... | |
| boolean | applyReadingOrder (int page_index, RectFArray selected_rect) throws com.foxit.sdk.PDFException |
| Apply reading order to the specified page based on the given selected rectangle area(s). More... | |
| boolean | canMoveDataOrder (int page_index, TreeItemInfoArray select_info_array, TreeItemInfo dest_move_item) throws com.foxit.sdk.PDFException |
| Check whether data order can be moved. More... | |
| int | canSelectTableCellAtPoint (PDFPage page, PointF point) throws com.foxit.sdk.PDFException |
| Check whether a table cell can be selected on mouse down at the given point. More... | |
| void | clearPageStructInfo (PDFPage page) throws com.foxit.sdk.PDFException |
| Clear page structure info. More... | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
| int | deleteOrderDataStructInfo (PDFPage page, Int32Array src_order_index_array, boolean is_loaded) throws com.foxit.sdk.PDFException |
| Delete order data structure info. More... | |
| boolean | drawReadingOrderItems (int page_index) throws com.foxit.sdk.PDFException |
| Draw reading order items for a specified page. More... | |
| boolean | endEditTable () throws com.foxit.sdk.PDFException |
| End edit table. More... | |
| boolean | generateTableHeaderIDs () throws com.foxit.sdk.PDFException |
| Generate table header IDs. More... | |
| java.util.ArrayList< java.lang.String > | getAllLeafChildrenByContentItemID (ContentTreeItemArray content_tree, String content_item_id) throws com.foxit.sdk.PDFException |
| Get all leaf children by content item ID. More... | |
| ContentTreeItemArray | getContentTree () throws com.foxit.sdk.PDFException |
| Get content tree. More... | |
| WStringArray | getCurrentTableHeaderIDs () throws com.foxit.sdk.PDFException |
| Get the array header ID of current table. More... | |
| TreeItemArray | getReadingOrderTreeItems () throws com.foxit.sdk.PDFException |
| Get reading order tree items. More... | |
| TableCellAttributeArray | getSelectedTableCellAttributes () throws com.foxit.sdk.PDFException |
| Get selected table cell attributes. More... | |
| String | getTableSummary (PDFPage page) throws com.foxit.sdk.PDFException |
| Get table summary. More... | |
| boolean | hasHeaderID (String header_id) throws com.foxit.sdk.PDFException |
| Check whether current table header ID is existing. More... | |
| boolean | hasMissingHeaderIDs () throws com.foxit.sdk.PDFException |
| Check whether current table is missing header IDs. More... | |
| boolean | isEditingTable () throws com.foxit.sdk.PDFException |
| Check whether table editing has started. More... | |
| boolean | isEmpty () |
| Check whether current object is empty or not. More... | |
| int | moveOrderData (int page_index, Int32Array src_order_index_array, int dest_order_index) throws com.foxit.sdk.PDFException |
| Move data order. More... | |
| RectFArray | removeOrderDataForRect (int page_index, RectF rect) throws com.foxit.sdk.PDFException |
| Remove order data for selected rect. More... | |
| boolean | selectTableAtPoint (int page_index, PointF point) throws com.foxit.sdk.PDFException |
| Select the table at the specified point on a page, if any. More... | |
| int | selectTableCellAtPoint (PDFPage page, PointF point, RectFArray region_selected, boolean appended) throws com.foxit.sdk.PDFException |
| Select table cell by point on mouse up. More... | |
| int | selectTableCellAtRect (PDFPage page, RectF rect, RectFArray region_selected, boolean appended) throws com.foxit.sdk.PDFException |
| Select table cell by rect on mouse up. More... | |
| boolean | setOrderTypeForSelectedContent (int structure_type) throws com.foxit.sdk.PDFException |
| Set order type for selected content. More... | |
| boolean | setOrderTypeForSelectedTreeItems (int structure_type, TreeItemInfoArray select_info_array) throws com.foxit.sdk.PDFException |
| Set order type for selected tree items. More... | |
| void | setReadingOrderOptions (ReadingOrderOptions options) throws com.foxit.sdk.PDFException |
| Set reading order options. More... | |
| boolean | setSelectedTableCellAttributes (TableCellAttribute cell_attribute, boolean change_id_enabled, boolean need_change_ids) throws com.foxit.sdk.PDFException |
| Set selected table cell attributes. More... | |
| boolean | setTableSummary (PDFPage page, String table_summary) throws com.foxit.sdk.PDFException |
| Set table summary. More... | |
| boolean | startEditTable (PDFPage page) throws com.foxit.sdk.PDFException |
| Start edit table. More... | |
| boolean | startEditTableAtPoint (PDFPage page, PointF point) throws com.foxit.sdk.PDFException |
| Start editing the table located at the specified point on a page, if any. More... | |
| void | synchronizeTable () throws com.foxit.sdk.PDFException |
| Synchronize table. More... | |
Static Public Attributes | |
| static final int | e_StructureTypeBackgroundOrArtifact = 16 |
| Structure type: background or artifact. | |
| static final int | e_StructureTypeCaption = 4 |
| Structure type: caption. | |
| static final int | e_StructureTypeCell = 12 |
| Structure type: cell. | |
| static final int | e_StructureTypeFigure = 1 |
| Structure type: figure. | |
| static final int | e_StructureTypeFigureOrCaption = 3 |
| Structure type: figure or caption. | |
| static final int | e_StructureTypeFormfield = 2 |
| Structure type: form field. | |
| static final int | e_StructureTypeFormula = 13 |
| Structure type: formula. | |
| static final int | e_StructureTypeH1 = 5 |
| Structure type: H1. | |
| static final int | e_StructureTypeH2 = 6 |
| Structure type: H2. | |
| static final int | e_StructureTypeH3 = 7 |
| Structure type: H3. | |
| static final int | e_StructureTypeH4 = 8 |
| Structure type: H4. | |
| static final int | e_StructureTypeH5 = 9 |
| Structure type: H5. | |
| static final int | e_StructureTypeH6 = 10 |
| Structure type: H6. | |
| static final int | e_StructureTypeNote = 15 |
| Structure type: note. | |
| static final int | e_StructureTypeReference = 14 |
| Structure type: reference. | |
| static final int | e_StructureTypeTable = 11 |
| Structure type: table. | |
| static final int | e_StructureTypeText = 0 |
| Structure type: text. | |
| static final int | e_TableSelectResultNone = 0 |
| Table select result : none. | |
| static final int | e_TableSelectResultNoTableExist = 3 |
| Table select result : no table exist. | |
| static final int | e_TableSelectResultNotInTable = 4 |
| Table select result : not in table. | |
| static final int | e_TableSelectResultNotSamePage = 2 |
| Table select result : not same page. | |
| static final int | e_TableSelectResultNotStarted = 1 |
| Table select result : not started. | |
This class represents a reading order for PDF document accessibility reading order operations. 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.ReadingOrder.ReadingOrder | ( | PDFDoc | pdf_doc | ) | throws com.foxit.sdk.PDFException |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| com.foxit.sdk.addon.accessibility.ReadingOrder.ReadingOrder | ( | ReadingOrder | other | ) |
Constructor, with another reading order object.
| [in] | other | Another reading order object. |
| RectFArray com.foxit.sdk.addon.accessibility.ReadingOrder.addOrderDataForRect | ( | int | page_index, |
| RectF | rect | ||
| ) | throws com.foxit.sdk.PDFException |
Add order data for selected rect.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | rect | The selected rect. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.applyReadingOrder | ( | int | page_index, |
| RectFArray | selected_rect | ||
| ) | throws com.foxit.sdk.PDFException |
Apply reading order to the specified page based on the given selected rectangle area(s).
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | selected_rect | The array of selected rects which define the area(s) to be used for applying reading order. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.canMoveDataOrder | ( | int | page_index, |
| TreeItemInfoArray | select_info_array, | ||
| TreeItemInfo | dest_move_item | ||
| ) | throws com.foxit.sdk.PDFException |
Check whether data order can be moved.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | select_info_array | The selected info array. |
| [in] | dest_move_item | The destination move item. |
| int com.foxit.sdk.addon.accessibility.ReadingOrder.canSelectTableCellAtPoint | ( | PDFPage | page, |
| PointF | point | ||
| ) | throws com.foxit.sdk.PDFException |
Check whether a table cell can be selected on mouse down at the given point.
| [in] | page | A PDF page object. |
| [in] | point | The point, in the PDF coordinate system (PDFPage). |
| void com.foxit.sdk.addon.accessibility.ReadingOrder.clearPageStructInfo | ( | PDFPage | page | ) | throws com.foxit.sdk.PDFException |
Clear page structure info.
| [in] | page | The PDF page object. |
| synchronized void com.foxit.sdk.addon.accessibility.ReadingOrder.delete | ( | ) |
Clean up related C++ resources immediately.
Reimplemented from com.foxit.sdk.common.Base.
| int com.foxit.sdk.addon.accessibility.ReadingOrder.deleteOrderDataStructInfo | ( | PDFPage | page, |
| Int32Array | src_order_index_array, | ||
| boolean | is_loaded | ||
| ) | throws com.foxit.sdk.PDFException |
Delete order data structure info.
| [in] | page | The PDF page object. |
| [in] | src_order_index_array | The source order index array. |
| [in] | is_loaded | Whether the page is loaded. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.drawReadingOrderItems | ( | int | page_index | ) | throws com.foxit.sdk.PDFException |
Draw reading order items for a specified page.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.endEditTable | ( | ) | throws com.foxit.sdk.PDFException |
End edit table.
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.generateTableHeaderIDs | ( | ) | throws com.foxit.sdk.PDFException |
Generate table header IDs.
| java.util.ArrayList< java.lang.String > com.foxit.sdk.addon.accessibility.ReadingOrder.getAllLeafChildrenByContentItemID | ( | ContentTreeItemArray | content_tree, |
| String | content_item_id | ||
| ) | throws com.foxit.sdk.PDFException |
Get all leaf children by content item ID.
| [in] | content_tree | The content tree. |
| [in] | content_item_id | The content item ID. |
| ContentTreeItemArray com.foxit.sdk.addon.accessibility.ReadingOrder.getContentTree | ( | ) | throws com.foxit.sdk.PDFException |
Get content tree.
| WStringArray com.foxit.sdk.addon.accessibility.ReadingOrder.getCurrentTableHeaderIDs | ( | ) | throws com.foxit.sdk.PDFException |
Get the array header ID of current table.
| TreeItemArray com.foxit.sdk.addon.accessibility.ReadingOrder.getReadingOrderTreeItems | ( | ) | throws com.foxit.sdk.PDFException |
Get reading order tree items.
| TableCellAttributeArray com.foxit.sdk.addon.accessibility.ReadingOrder.getSelectedTableCellAttributes | ( | ) | throws com.foxit.sdk.PDFException |
Get selected table cell attributes.
| String com.foxit.sdk.addon.accessibility.ReadingOrder.getTableSummary | ( | PDFPage | page | ) | throws com.foxit.sdk.PDFException |
Get table summary.
| [in] | page | The PDF page object. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.hasHeaderID | ( | String | header_id | ) | throws com.foxit.sdk.PDFException |
Check whether current table header ID is existing.
| [in] | header_id | The header ID to check. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.hasMissingHeaderIDs | ( | ) | throws com.foxit.sdk.PDFException |
Check whether current table is missing header IDs.
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.isEditingTable | ( | ) | throws com.foxit.sdk.PDFException |
Check whether table editing has started.
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.isEmpty | ( | ) |
Check whether current object is empty or not.
| int com.foxit.sdk.addon.accessibility.ReadingOrder.moveOrderData | ( | int | page_index, |
| Int32Array | src_order_index_array, | ||
| int | dest_order_index | ||
| ) | throws com.foxit.sdk.PDFException |
Move data order.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | src_order_index_array | The source order index array. |
| [in] | dest_order_index | The destination order index. |
| RectFArray com.foxit.sdk.addon.accessibility.ReadingOrder.removeOrderDataForRect | ( | int | page_index, |
| RectF | rect | ||
| ) | throws com.foxit.sdk.PDFException |
Remove order data for selected rect.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | rect | The selected rect. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.selectTableAtPoint | ( | int | page_index, |
| PointF | point | ||
| ) | throws com.foxit.sdk.PDFException |
Select the table at the specified point on a page, if any.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | point | The point used to locate the table, in PDF page coordinate system. |
| int com.foxit.sdk.addon.accessibility.ReadingOrder.selectTableCellAtPoint | ( | PDFPage | page, |
| PointF | point, | ||
| RectFArray | region_selected, | ||
| boolean | appended | ||
| ) | throws com.foxit.sdk.PDFException |
Select table cell by point on mouse up.
| [in] | page | A PDF page object. |
| [in] | point | The point. |
| [out] | region_selected | The selected region array. |
| [in] | appended | Whether to append the selection. |
| int com.foxit.sdk.addon.accessibility.ReadingOrder.selectTableCellAtRect | ( | PDFPage | page, |
| RectF | rect, | ||
| RectFArray | region_selected, | ||
| boolean | appended | ||
| ) | throws com.foxit.sdk.PDFException |
Select table cell by rect on mouse up.
| [in] | page | A PDF page object. |
| [in] | rect | The rectangular area . |
| [out] | region_selected | The selected region array. |
| [in] | appended | Whether to append the selection. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.setOrderTypeForSelectedContent | ( | int | structure_type | ) | throws com.foxit.sdk.PDFException |
Set order type for selected content.
| [in] | structure_type | The structure type. Please refer to values starting from and this should be one of these values. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.setOrderTypeForSelectedTreeItems | ( | int | structure_type, |
| TreeItemInfoArray | select_info_array | ||
| ) | throws com.foxit.sdk.PDFException |
Set order type for selected tree items.
| [in] | structure_type | The structure type. Please refer value . |
| [in] | select_info_array | The selected info array. |
| void com.foxit.sdk.addon.accessibility.ReadingOrder.setReadingOrderOptions | ( | ReadingOrderOptions | options | ) | throws com.foxit.sdk.PDFException |
Set reading order options.
| [in] | options | The reading order options. Please refer to ReadingOrderOptions . |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.setSelectedTableCellAttributes | ( | TableCellAttribute | cell_attribute, |
| boolean | change_id_enabled, | ||
| boolean | need_change_ids | ||
| ) | throws com.foxit.sdk.PDFException |
Set selected table cell attributes.
| [in] | cell_attribute | The cell attribute to set. |
| [in] | change_id_enabled | Whether to enable changing Id. |
| [in] | need_change_ids | Whether to change IDs. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.setTableSummary | ( | PDFPage | page, |
| String | table_summary | ||
| ) | throws com.foxit.sdk.PDFException |
Set table summary.
| [in] | page | The PDF page object. |
| [in] | table_summary | The table summary text. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.startEditTable | ( | PDFPage | page | ) | throws com.foxit.sdk.PDFException |
Start edit table.
| [in] | page | The PDF page object. |
| boolean com.foxit.sdk.addon.accessibility.ReadingOrder.startEditTableAtPoint | ( | PDFPage | page, |
| PointF | point | ||
| ) | throws com.foxit.sdk.PDFException |
Start editing the table located at the specified point on a page, if any.
| [in] | page | The PDF page object. |
| [in] | point | The point used to locate the table to be edited, in the PDF coordinate system (PDFPage). |
| void com.foxit.sdk.addon.accessibility.ReadingOrder.synchronizeTable | ( | ) | throws com.foxit.sdk.PDFException |
Synchronize table.