Foxit PDF SDK
|
Public Member Functions | |
AdjustStructureOrder (annot_array) | |
Adjust the structure order with specified annotations, and tab order type will be set to FSDK.TabOrderMgr.e_Structure at the same time. More... | |
constructor (page) | |
Constructor, from a PDF page object. More... | |
GetFirstAnnot () | |
Get the first annotation in current tab order. More... | |
GetLastAnnot () | |
Get the last annotation in current tab order. More... | |
GetNextAnnot (annot) | |
Get the next annotation of specified annotation in current tab order. More... | |
GetOrderType () | |
Get the tab order type. More... | |
GetPrevAnnot (annot) | |
Get the previous annotation of specified annotation in current tab order. More... | |
IsEmpty () | |
Check whether current object is empty or not. More... | |
Reload () | |
Reload the tab order of annotations. More... | |
SetOrderType (order_type) | |
Set the tab order type. More... | |
Static Public Attributes | |
static | e_Column |
C (column order): Annotations are visited in columns running vertically up and down the page. | |
static | e_None |
Enumeration for tab order type. More... | |
static | e_Row |
R (row order): Annotations are visited in rows running horizontally across the page. | |
static | e_Structure |
S (structure order): Annotations are visited in the order in which they appear in the structure tree. | |
Tab order is the order to navigate through annotations on a PDF page by using Tab key in keyboard. This class offers functions to manage the order of moving the keyboard focus among annotations on a PDF page. Tab order manager will ignore following types of annotations:
note annotations which are as reply annotations, note annotations which are as state annotations, pop-up annotations, annotations whose flags contain FSDK.Annot.e_FlagHidden.
This class offers functions to get the order type and get annotations one by one in the order type. This class also offers functions to change the order type:
After FSDK.TabOrderMgr.SetOrderType being used or calling function FSDK.TabOrderMgr.AdjustStructureOrder, function FSDK.TabOrderMgr.Reload should be called; otherwise the annotations' order may not be changed as expected.
FSDK.TabOrderMgr.AdjustStructureOrder | ( | annot_array | ) |
Adjust the structure order with specified annotations, and tab order type will be set to FSDK.TabOrderMgr.e_Structure at the same time.
This function is used to adjust the annotation order for structure tab order. First, re-order annotations in the input array according to the order in this array, and then re-order the reset annotations (which are not included in the input array) by the reading direction of PDF document.
After this function succeeds, indexes of all annotations in the related PDF page will be changed.
[in] | annot_array | An array of annotations which will be re-ordered first for structure tab order. All the annotations in this array should belong to the same page as the one related to current tab order manager. These annotations should all be valid and should be different from each other. |
FSDK.TabOrderMgr.constructor | ( | page | ) |
Constructor, from a PDF page object.
[in] | page | A valid PDF page. |
FSDK.TabOrderMgr.GetFirstAnnot | ( | ) |
Get the first annotation in current tab order.
FSDK.TabOrderMgr.GetLastAnnot | ( | ) |
Get the last annotation in current tab order.
FSDK.TabOrderMgr.GetNextAnnot | ( | annot | ) |
Get the next annotation of specified annotation in current tab order.
[in] | annot | The valid specified annotation. |
FSDK.TabOrderMgr.GetOrderType | ( | ) |
Get the tab order type.
FSDK.TabOrderMgr.GetPrevAnnot | ( | annot | ) |
Get the previous annotation of specified annotation in current tab order.
[in] | annot | The valid specified annotation. |
FSDK.TabOrderMgr.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
FSDK.TabOrderMgr.Reload | ( | ) |
Reload the tab order of annotations.
This function should be called when:
FSDK.TabOrderMgr.SetOrderType | ( | order_type | ) |
Set the tab order type.
[in] | order_type | The new tab order type. It should be one of following values:
|
|
static |
Enumeration for tab order type.
Values of this enumeration should be used alone.
None (index order): Annotations are visited in annotation's index across the page.