Foxit PDF SDK
FSDK::ReadingOrder类 参考

Public 成员函数

 AddOrderDataForRect (page_index, rect)
 Add order data for selected rect. 更多...
 
 ApplyReadingOrder (page_index, selected_rect)
 Apply reading order to the specified page based on the given selected rectangle area(s). 更多...
 
 CanMoveDataOrder (page_index, select_info_array, dest_move_item)
 Check whether data order can be moved. 更多...
 
 CanSelectTableCellAtPoint (page, point)
 Check whether a table cell can be selected on mouse down at the given point. 更多...
 
 ClearPageStructInfo (page)
 Clear page structure info. 更多...
 
 constructor (pdf_doc)
 构造函数。 更多...
 
 DeleteOrderDataStructInfo (page, src_order_index_array, is_loaded)
 Delete order data structure info. 更多...
 
 DrawReadingOrderItems (page_index)
 Draw reading order items for a specified page. 更多...
 
 EndEditTable ()
 End edit table. 更多...
 
 GenerateTableHeaderIDs ()
 Generate table header IDs. 更多...
 
 GetAllLeafChildrenByContentItemID (content_tree, content_item_id)
 Get all leaf children by content item ID. 更多...
 
 GetContentTree ()
 Get content tree. 更多...
 
 GetCurrentTableHeaderIDs ()
 Get the array header ID of current table. 更多...
 
 GetReadingOrderTreeItems ()
 Get reading order tree items. 更多...
 
 GetSelectedTableCellAttributes ()
 Get selected table cell attributes. 更多...
 
 GetTableSummary (page)
 Get table summary. 更多...
 
 HasHeaderID (header_id)
 Check whether current table header ID is existing. 更多...
 
 HasMissingHeaderIDs ()
 Check whether current table is missing header IDs. 更多...
 
 IsEditingTable ()
 Check whether table editing has started. 更多...
 
 IsEmpty ()
 Check whether current object is empty or not. 更多...
 
 MoveOrderData (page_index, src_order_index_array, dest_order_index)
 Move data order. 更多...
 
 RemoveOrderDataForRect (page_index, rect)
 Remove order data for selected rect. 更多...
 
 SelectTableAtPoint (page_index, point)
 Select the table at the specified point on a page, if any. 更多...
 
 SelectTableCellAtPoint (page, point, region_selected, appended)
 Select table cell by point on mouse up. 更多...
 
 SelectTableCellAtRect (page, rect, region_selected, appended)
 Select table cell by rect on mouse up. 更多...
 
 SetOrderTypeForSelectedContent (structure_type)
 Set order type for selected content. 更多...
 
 SetOrderTypeForSelectedTreeItems (structure_type, select_info_array)
 Set order type for selected tree items. 更多...
 
 SetReadingOrderOptions (options)
 Set reading order options. 更多...
 
 SetSelectedTableCellAttributes (cell_attribute, change_id_enabled, need_change_ids)
 Set selected table cell attributes. 更多...
 
 SetTableSummary (page, table_summary)
 Set table summary. 更多...
 
 StartEditTable (page)
 Start edit table. 更多...
 
 StartEditTableAtPoint (page, point)
 Start editing the table located at the specified point on a page, if any. 更多...
 
 SynchronizeTable ()
 Synchronize table. 更多...
 

静态 Public 属性

static e_StructureTypeBackgroundOrArtifact
 Structure type: background or artifact.
 
static e_StructureTypeCaption
 Structure type: caption.
 
static e_StructureTypeCell
 Structure type: cell.
 
static e_StructureTypeFigure
 Structure type: figure.
 
static e_StructureTypeFigureOrCaption
 Structure type: figure or caption.
 
static e_StructureTypeFormfield
 Structure type: form field.
 
static e_StructureTypeFormula
 Structure type: formula.
 
static e_StructureTypeH1
 Structure type: H1.
 
static e_StructureTypeH2
 Structure type: H2.
 
static e_StructureTypeH3
 Structure type: H3.
 
static e_StructureTypeH4
 Structure type: H4.
 
static e_StructureTypeH5
 Structure type: H5.
 
static e_StructureTypeH6
 Structure type: H6.
 
static e_StructureTypeNote
 Structure type: note.
 
static e_StructureTypeReference
 Structure type: reference.
 
static e_StructureTypeTable
 Structure type: table.
 
static e_StructureTypeText
 Enumeration for structure type of reading order. 更多...
 
static e_TableSelectResultNone
 Enumeration for table select result. 更多...
 
static e_TableSelectResultNoTableExist
 Table select result : no table exist.
 
static e_TableSelectResultNotInTable
 Table select result : not in table.
 
static e_TableSelectResultNotSamePage
 Table select result : not same page.
 
static e_TableSelectResultNotStarted
 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 FSDK.Library.Initialize with a key including "Accessibility" module.

参见
FSDK.Library

成员函数说明

◆ AddOrderDataForRect()

FSDK::ReadingOrder::AddOrderDataForRect (   page_index,
  rect 
)
inline

Add order data for selected rect.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]rectThe selected rect.
返回
The updated order rect array.

◆ ApplyReadingOrder()

FSDK::ReadingOrder::ApplyReadingOrder (   page_index,
  selected_rect 
)
inline

Apply reading order to the specified page based on the given selected rectangle area(s).

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]selected_rectThe array of selected rects which define the area(s) to be used for applying reading order.
返回
true 表示成功,false 表示不成功。

◆ CanMoveDataOrder()

FSDK::ReadingOrder::CanMoveDataOrder (   page_index,
  select_info_array,
  dest_move_item 
)
inline

Check whether data order can be moved.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]select_info_arrayThe selected info array.
[in]dest_move_itemThe destination move item.
返回
true means data order can be moved, while false means not.

◆ CanSelectTableCellAtPoint()

FSDK::ReadingOrder::CanSelectTableCellAtPoint (   page,
  point 
)
inline

Check whether a table cell can be selected on mouse down at the given point.

参数
[in]pageA PDF page object.
[in]pointThe point, in the PDF coordinate system (PDFPage).
返回
The table select result. Please refer to values starting from FSDK.ReadingOrder.e_TableSelectResultNone.

◆ ClearPageStructInfo()

FSDK::ReadingOrder::ClearPageStructInfo (   page)
inline

Clear page structure info.

参数
[in]pageThe PDF page object.
返回
None.

◆ constructor()

FSDK::ReadingOrder::constructor (   pdf_doc)
inline

构造函数。

参数
[in]pdf_doc一个有效的 PDF 文档对象。

◆ DeleteOrderDataStructInfo()

FSDK::ReadingOrder::DeleteOrderDataStructInfo (   page,
  src_order_index_array,
  is_loaded 
)
inline

Delete order data structure info.

参数
[in]pageThe PDF page object.
[in]src_order_index_arrayThe source order index array.
[in]is_loadedWhether the page is loaded.
返回
The deleted count.

◆ DrawReadingOrderItems()

FSDK::ReadingOrder::DrawReadingOrderItems (   page_index)
inline

Draw reading order items for a specified page.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
返回
true 表示成功,false 表示不成功。

◆ EndEditTable()

FSDK::ReadingOrder::EndEditTable ( )
inline

End edit table.

返回
true 表示成功,false 表示不成功。

◆ GenerateTableHeaderIDs()

FSDK::ReadingOrder::GenerateTableHeaderIDs ( )
inline

Generate table header IDs.

返回
true 表示成功,false 表示不成功。

◆ GetAllLeafChildrenByContentItemID()

FSDK::ReadingOrder::GetAllLeafChildrenByContentItemID (   content_tree,
  content_item_id 
)
inline

Get all leaf children by content item ID.

参数
[in]content_treeThe content tree.
[in]content_item_idThe content item ID.
返回
The array of leaf children IDs.

◆ GetContentTree()

FSDK::ReadingOrder::GetContentTree ( )
inline

Get content tree.

返回
The array of content tree items.

◆ GetCurrentTableHeaderIDs()

FSDK::ReadingOrder::GetCurrentTableHeaderIDs ( )
inline

Get the array header ID of current table.

返回
The array of header ID.

◆ GetReadingOrderTreeItems()

FSDK::ReadingOrder::GetReadingOrderTreeItems ( )
inline

Get reading order tree items.

返回
The array of reading order tree items.

◆ GetSelectedTableCellAttributes()

FSDK::ReadingOrder::GetSelectedTableCellAttributes ( )
inline

Get selected table cell attributes.

返回
The array of cell attribute objects.

◆ GetTableSummary()

FSDK::ReadingOrder::GetTableSummary (   page)
inline

Get table summary.

参数
[in]pageThe PDF page object.
返回
The table summary text.

◆ HasHeaderID()

FSDK::ReadingOrder::HasHeaderID (   header_id)
inline

Check whether current table header ID is existing.

参数
[in]header_idThe header ID to check.
返回
true means the header ID is existing, while false means not.

◆ HasMissingHeaderIDs()

FSDK::ReadingOrder::HasMissingHeaderIDs ( )
inline

Check whether current table is missing header IDs.

返回
true means current table is missing header IDs, while false means not.

◆ IsEditingTable()

FSDK::ReadingOrder::IsEditingTable ( )
inline

Check whether table editing has started.

返回
true means table editing has started, while false means not.

◆ IsEmpty()

FSDK::ReadingOrder::IsEmpty ( )
inline

Check whether current object is empty or not.

返回
true means current object is empty, while false means not.

◆ MoveOrderData()

FSDK::ReadingOrder::MoveOrderData (   page_index,
  src_order_index_array,
  dest_order_index 
)
inline

Move data order.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]src_order_index_arrayThe source order index array.
[in]dest_order_indexThe destination order index.
返回
The moved count.

◆ RemoveOrderDataForRect()

FSDK::ReadingOrder::RemoveOrderDataForRect (   page_index,
  rect 
)
inline

Remove order data for selected rect.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]rectThe selected rect.
返回
The updated order rect array.

◆ SelectTableAtPoint()

FSDK::ReadingOrder::SelectTableAtPoint (   page_index,
  point 
)
inline

Select the table at the specified point on a page, if any.

参数
[in]page_indexThe page index. Valid range: from 0 to (count-1). count is returned by function FSDK.PDFDoc.GetPageCount.
[in]pointThe point used to locate the table, in PDF page coordinate system.
返回
true means a table is found and selected at the specified point, while false means not.

◆ SelectTableCellAtPoint()

FSDK::ReadingOrder::SelectTableCellAtPoint (   page,
  point,
  region_selected,
  appended 
)
inline

Select table cell by point on mouse up.

参数
[in]pageA PDF page object.
[in]pointThe point.
[out]region_selectedThe selected region array.
[in]appendedWhether to append the selection.
返回
The table select result. Please refer to values starting from FSDK.ReadingOrder.e_TableSelectResultNone.

◆ SelectTableCellAtRect()

FSDK::ReadingOrder::SelectTableCellAtRect (   page,
  rect,
  region_selected,
  appended 
)
inline

Select table cell by rect on mouse up.

参数
[in]pageA PDF page object.
[in]rectThe rectangular area .
[out]region_selectedThe selected region array.
[in]appendedWhether to append the selection.
返回
The table select result. Please refer to values starting from FSDK.ReadingOrder.e_TableSelectResultNone.

◆ SetOrderTypeForSelectedContent()

FSDK::ReadingOrder::SetOrderTypeForSelectedContent (   structure_type)
inline

Set order type for selected content.

参数
[in]structure_typeThe structure type. Please refer to values starting from FSDK.e_StructureTypeText and this should be one of these values.
返回
true 表示成功,false 表示不成功。

◆ SetOrderTypeForSelectedTreeItems()

FSDK::ReadingOrder::SetOrderTypeForSelectedTreeItems (   structure_type,
  select_info_array 
)
inline

Set order type for selected tree items.

参数
[in]structure_typeThe structure type. Please refer value FSDK.StructureType.
[in]select_info_arrayThe selected info array.
返回
true 表示成功,false 表示不成功。

◆ SetReadingOrderOptions()

FSDK::ReadingOrder::SetReadingOrderOptions (   options)
inline

Set reading order options.

参数
[in]optionsThe reading order options. Please refer to FSDK.ReadingOrderOptions.
返回
None.

◆ SetSelectedTableCellAttributes()

FSDK::ReadingOrder::SetSelectedTableCellAttributes (   cell_attribute,
  change_id_enabled,
  need_change_ids 
)
inline

Set selected table cell attributes.

参数
[in]cell_attributeThe cell attribute to set.
[in]change_id_enabledWhether to enable changing Id.
[in]need_change_idsWhether to change IDs.
返回
true 表示成功,false 表示不成功。

◆ SetTableSummary()

FSDK::ReadingOrder::SetTableSummary (   page,
  table_summary 
)
inline

Set table summary.

参数
[in]pageThe PDF page object.
[in]table_summaryThe table summary text.
返回
true 表示成功,false 表示不成功。

◆ StartEditTable()

FSDK::ReadingOrder::StartEditTable (   page)
inline

Start edit table.

参数
[in]pageThe PDF page object.
返回
true 表示成功,false 表示不成功。

◆ StartEditTableAtPoint()

FSDK::ReadingOrder::StartEditTableAtPoint (   page,
  point 
)
inline

Start editing the table located at the specified point on a page, if any.

参数
[in]pageThe PDF page object.
[in]pointThe point used to locate the table to be edited, in the PDF coordinate system (PDFPage).
返回
true means a table is found at the specified point and editing has started successfully, while false means not.

◆ SynchronizeTable()

FSDK::ReadingOrder::SynchronizeTable ( )
inline

Synchronize table.

返回
None.

类成员变量说明

◆ e_StructureTypeText

FSDK::ReadingOrder::e_StructureTypeText
static

Enumeration for structure type of reading order.

Values of this enumeration should be used alone.

Structure type: text.

◆ e_TableSelectResultNone

FSDK::ReadingOrder::e_TableSelectResultNone
static

Enumeration for table select result.

Values of this enumeration should be used alone.

Table select result : none.