|
Foxit PDF SDK
|
Instance Methods | |
| (FSRectFArray *) | - addOrderDataForRect:rect: |
| Add order data for selected rect. More... | |
| (BOOL) | - applyReadingOrder:selected_rect: |
| Apply reading order to the specified page based on the given selected rectangle area(s). More... | |
| (BOOL) | - canMoveDataOrder:select_info_array:dest_move_item: |
| Check whether data order can be moved. More... | |
| (FSReadingOrderTableSelectResult) | - canSelectTableCellAtPoint:point: |
| Check whether a table cell can be selected on mouse down at the given point. More... | |
| (void) | - clearPageStructInfo: |
| Clear page structure info. More... | |
| (int) | - deleteOrderDataStructInfo:src_order_index_array:is_loaded: |
| Delete order data structure info. More... | |
| (BOOL) | - drawReadingOrderItems: |
| Draw reading order items for a specified page. More... | |
| (BOOL) | - endEditTable |
| End edit table. More... | |
| (BOOL) | - generateTableHeaderIDs |
| Generate table header IDs. More... | |
| (NSArray< NSData * > *) | - getAllLeafChildrenByContentItemID:content_item_id: |
| Get all leaf children by content item ID. More... | |
| (FSContentTreeItemArray *) | - getContentTree |
| Get content tree. More... | |
| (NSArray< NSString * > *) | - getCurrentTableHeaderIDs |
| Get the array header ID of current table. More... | |
| (FSTreeItemArray *) | - getReadingOrderTreeItems |
| Get reading order tree items. More... | |
| (FSTableCellAttributeArray *) | - getSelectedTableCellAttributes |
| Get selected table cell attributes. More... | |
| (NSString *) | - getTableSummary: |
| Get table summary. More... | |
| (BOOL) | - hasHeaderID: |
| Check whether current table header ID is existing. More... | |
| (BOOL) | - hasMissingHeaderIDs |
| Check whether current table is missing header IDs. More... | |
| (id) | - initWithOther: |
| Constructor, with another reading order object. More... | |
| (id) | - initWithPdf_doc: |
| Constructor. More... | |
| (BOOL) | - isEditingTable |
| Check whether table editing has started. More... | |
| (BOOL) | - isEmpty |
| Check whether current object is empty or not. More... | |
| (int) | - moveOrderData:src_order_index_array:dest_order_index: |
| Move data order. More... | |
| (FSRectFArray *) | - removeOrderDataForRect:rect: |
| Remove order data for selected rect. More... | |
| (BOOL) | - selectTableAtPoint:point: |
| Select the table at the specified point on a page, if any. More... | |
| (FSReadingOrderTableSelectResult) | - selectTableCellAtPoint:point:region_selected:appended: |
| Select table cell by point on mouse up. More... | |
| (FSReadingOrderTableSelectResult) | - selectTableCellAtRect:rect:region_selected:appended: |
| Select table cell by rect on mouse up. More... | |
| (BOOL) | - setOrderTypeForSelectedContent: |
| Set order type for selected content. More... | |
| (BOOL) | - setOrderTypeForSelectedTreeItems:select_info_array: |
| Set order type for selected tree items. More... | |
| (void) | - setReadingOrderOptions: |
| Set reading order options. More... | |
| (BOOL) | - setSelectedTableCellAttributes:change_id_enabled:need_change_ids: |
| Set selected table cell attributes. More... | |
| (BOOL) | - setTableSummary:table_summary: |
| Set table summary. More... | |
| (BOOL) | - startEditTable: |
| Start edit table. More... | |
| (BOOL) | - startEditTableAtPoint:point: |
| Start editing the table located at the specified point on a page, if any. More... | |
| (void) | - synchronizeTable |
| Synchronize table. More... | |
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 FSLibrary::initialize:key: with a key including "Accessibility" module.
| - (FSRectFArray *) addOrderDataForRect: | (int) | page_index | |
| rect: | (FSRectF*) | rect | |
Add order data for selected rect.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function FSPDFDoc::getPageCount. |
| [in] | rect | The selected rect. |
| - (BOOL) applyReadingOrder: | (int) | page_index | |
| selected_rect: | (FSRectFArray*) | selected_rect | |
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 FSPDFDoc::getPageCount. |
| [in] | selected_rect | The array of selected rects which define the area(s) to be used for applying reading order. |
| - (BOOL) canMoveDataOrder: | (int) | page_index | |
| select_info_array: | (FSTreeItemInfoArray*) | select_info_array | |
| dest_move_item: | (FSTreeItemInfo*) | dest_move_item | |
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 FSPDFDoc::getPageCount. |
| [in] | select_info_array | The selected info array. |
| [in] | dest_move_item | The destination move item. |
| - (FSReadingOrderTableSelectResult) canSelectTableCellAtPoint: | (FSPDFPage*) | page | |
| point: | (FSPointF*) | point | |
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) clearPageStructInfo: | (FSPDFPage*) | page |
Clear page structure info.
| [in] | page | The PDF page object. |
| - (int) deleteOrderDataStructInfo: | (FSPDFPage*) | page | |
| src_order_index_array: | (FSInt32Array*) | src_order_index_array | |
| is_loaded: | (BOOL) | is_loaded | |
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. |
| - (BOOL) drawReadingOrderItems: | (int) | page_index |
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 FSPDFDoc::getPageCount. |
| - (BOOL) endEditTable |
End edit table.
| - (BOOL) generateTableHeaderIDs |
Generate table header IDs.
| - (NSArray< NSData * > *) getAllLeafChildrenByContentItemID: | (FSContentTreeItemArray*) | content_tree | |
| content_item_id: | (NSString *) | content_item_id | |
Get all leaf children by content item ID.
| [in] | content_tree | The content tree. |
| [in] | content_item_id | The content item ID. |
| - (FSContentTreeItemArray *) getContentTree |
Get content tree.
| - (NSArray< NSString * > *) getCurrentTableHeaderIDs |
Get the array header ID of current table.
| - (FSTreeItemArray *) getReadingOrderTreeItems |
Get reading order tree items.
| - (FSTableCellAttributeArray *) getSelectedTableCellAttributes |
Get selected table cell attributes.
| - (NSString *) getTableSummary: | (FSPDFPage*) | page |
Get table summary.
| [in] | page | The PDF page object. |
| - (BOOL) hasHeaderID: | (NSString *) | header_id |
Check whether current table header ID is existing.
| [in] | header_id | The header ID to check. |
| - (BOOL) hasMissingHeaderIDs |
Check whether current table is missing header IDs.
| - (id) initWithOther: | (FSReadingOrder*) | other |
Constructor, with another reading order object.
| [in] | other | Another reading order object. |
| - (id) initWithPdf_doc: | (FSPDFDoc*) | pdf_doc |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| - (BOOL) isEditingTable |
Check whether table editing has started.
| - (BOOL) isEmpty |
Check whether current object is empty or not.
| - (int) moveOrderData: | (int) | page_index | |
| src_order_index_array: | (FSInt32Array*) | src_order_index_array | |
| dest_order_index: | (int) | dest_order_index | |
Move data order.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function FSPDFDoc::getPageCount. |
| [in] | src_order_index_array | The source order index array. |
| [in] | dest_order_index | The destination order index. |
| - (FSRectFArray *) removeOrderDataForRect: | (int) | page_index | |
| rect: | (FSRectF*) | rect | |
Remove order data for selected rect.
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function FSPDFDoc::getPageCount. |
| [in] | rect | The selected rect. |
| - (BOOL) selectTableAtPoint: | (int) | page_index | |
| point: | (FSPointF*) | point | |
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 FSPDFDoc::getPageCount. |
| [in] | point | The point used to locate the table, in PDF page coordinate system. |
| - (FSReadingOrderTableSelectResult) selectTableCellAtPoint: | (FSPDFPage*) | page | |
| point: | (FSPointF*) | point | |
| region_selected: | (FSRectFArray*) | region_selected | |
| appended: | (BOOL) | appended | |
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. |
| - (FSReadingOrderTableSelectResult) selectTableCellAtRect: | (FSPDFPage*) | page | |
| rect: | (FSRectF*) | rect | |
| region_selected: | (FSRectFArray*) | region_selected | |
| appended: | (BOOL) | appended | |
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. |
| - (BOOL) setOrderTypeForSelectedContent: | (FSReadingOrderStructureType) | structure_type |
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. |
| - (BOOL) setOrderTypeForSelectedTreeItems: | (FSReadingOrderStructureType) | structure_type | |
| select_info_array: | (FSTreeItemInfoArray*) | select_info_array | |
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) setReadingOrderOptions: | (FSReadingOrderOptions*) | options |
Set reading order options.
| [in] | options | The reading order options. Please refer to FSReadingOrderOptions . |
| - (BOOL) setSelectedTableCellAttributes: | (FSTableCellAttribute*) | cell_attribute | |
| change_id_enabled: | (BOOL) | change_id_enabled | |
| need_change_ids: | (BOOL) | need_change_ids | |
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. |
| - (BOOL) setTableSummary: | (FSPDFPage*) | page | |
| table_summary: | (NSString *) | table_summary | |
Set table summary.
| [in] | page | The PDF page object. |
| [in] | table_summary | The table summary text. |
| - (BOOL) startEditTable: | (FSPDFPage*) | page |
Start edit table.
| [in] | page | The PDF page object. |
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) synchronizeTable |
Synchronize table.