|
Foxit PDF SDK
|
Public Member Functions | |
| AddNewTag (selected_tag_id, type, title) | |
| Add a new tag to the tag tree. More... | |
| AddTagForAnnotation (is_tag_annotations, annot, page_index, selected_tag_id) | |
| Add tag for annotation. More... | |
| ChangeTagToArtifact (selected_tag_ids, artifact_type, artifact_to_side) | |
| Change tag to artifact. More... | |
| constructor (pdf_doc) | |
| Constructor. More... | |
| CreateTagFromSelectionByContent (selected_content_ids, selected_tag_id) | |
| Create tag from selection by content. More... | |
| CreateTagFromSelectionByElement (page_index, selected_tag_id) | |
| Create tag from selection by element. More... | |
| CreateTagFromSelectionByTag (selected_tag_ids, last_selected_tag_id) | |
| Create tag from selection by tag. More... | |
| CreateTagFromSelectionByText (page_index, selected_text_rects, selected_tag_id) | |
| Create tag from selection by text. More... | |
| DeleteEmptyTags (selected_tag_ids) | |
| Delete empty tags from the tag tree. More... | |
| DeleteTags (selected_tag_ids) | |
| Delete specified tags from the tag tree. More... | |
| FindTagFromSelection (selected_tag_ids) | |
| Find tag from selection. More... | |
| GetAllContents (selected_tag_id) | |
| Get all contents of a specified tag item. More... | |
| GetContentTreeItemIDsByTagItemID (selected_tag_id) | |
| Get content tree item IDs by tag item ID. More... | |
| GetTagPropertyByID (item_id) | |
| Get tag property by tag item ID. More... | |
| GetTagTree () | |
| Get the tag tree of the current PDF document. More... | |
| GetTagTreeContextMenuItems (input_data) | |
| Get context menu items for tag tree. More... | |
| IsEmpty () | |
| Check whether current object is empty or not. More... | |
| MoveTags (source_tag_ids, dest_tag_id, is_moved_as_child) | |
| Move tags in the tag tree. More... | |
| SetDocAsTaggedPDF () | |
| Set the current PDF document as a tagged PDF. More... | |
| SetTagPropertyActualText (item_id, actual_text) | |
| Set tag property actual text for a specified tag item. More... | |
| SetTagPropertyAlternateText (item_id, alternate_text) | |
| Set tag property alternate text for a specified tag item. More... | |
| SetTagPropertyID (item_id, id) | |
| Set tag property ID for a specified tag item. More... | |
| SetTagPropertyLanguage (item_id, language) | |
| Set tag property language for a specified tag item. More... | |
| SetTagPropertyTitle (item_id, title) | |
| Set tag property title for a specified tag item. More... | |
| SetTagPropertyType (item_id, type) | |
| Set tag property type for a specified tag item. More... | |
Static Public Attributes | |
| static | e_ArtifactAttachToSideTypeBottom |
| Artifact attach side: bottom. | |
| static | e_ArtifactAttachToSideTypeLeft |
| Artifact attach side: left. | |
| static | e_ArtifactAttachToSideTypeNone |
| Enumeration for artifact attach-to-side type. More... | |
| static | e_ArtifactAttachToSideTypeRight |
| Artifact attach side: right. | |
| static | e_ArtifactAttachToSideTypeTop |
| Artifact attach side: top. | |
| static | e_ArtifactTypeLayout |
| Artifact type: layout artifact (visual layout elements). | |
| static | e_ArtifactTypePage |
| Enumeration for artifact type. More... | |
| static | e_ArtifactTypePagination |
| Artifact type: pagination-related artifact (e.g., headers/footers). | |
This class lets user edit the tag tree (structure tree) of a PDF document: query and modify tag properties, add / delete / move tags, create tags from selection, change tags to artifacts and mark the document as a tagged PDF. 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.
|
inline |
Add a new tag to the tag tree.
| [in] | selected_tag_id | The selected tag ID as parent. |
| [in] | type | The tag type. |
| [in] | title | The tag title. |
|
inline |
Add tag for annotation.
| [in] | is_tag_annotations | Whether to tag annotations. |
| [in] | annot | The annotation object. |
| [in] | page_index | The page index. |
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Change tag to artifact.
| [in] | selected_tag_ids | The selected tag IDs. |
| [in] | artifact_type | The artifact type. Please refer to FSDK.ArtifactType. |
| [in] | artifact_to_side | The artifact attach to side type. Please refer to FSDK.ArtifactAttachToSideType. |
|
inline |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
|
inline |
Create tag from selection by content.
| [in] | selected_content_ids | The selected content IDs. |
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Create tag from selection by element.
| [in] | page_index | The page index. |
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Create tag from selection by tag.
| [in] | selected_tag_ids | The selected tag IDs. |
| [in] | last_selected_tag_id | The last selected tag ID. |
|
inline |
Create tag from selection by text.
| [in] | page_index | The page index. |
| [in] | selected_text_rects | The selected text rectangles. |
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Delete empty tags from the tag tree.
| [in] | selected_tag_ids | The array of tag IDs to check for empty tags. |
|
inline |
Delete specified tags from the tag tree.
| [in] | selected_tag_ids | The array of tag IDs to delete. |
|
inline |
Find tag from selection.
| [in] | selected_tag_ids | The selected tag IDs. |
|
inline |
Get all contents of a specified tag item.
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Get content tree item IDs by tag item ID.
| [in] | selected_tag_id | The selected tag ID. |
|
inline |
Get tag property by tag item ID.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
|
inline |
Get the tag tree of the current PDF document.
|
inline |
Get context menu items for tag tree.
| [in] | input_data | The input data for context menu. |
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
inline |
Move tags in the tag tree.
| [in] | source_tag_ids | The source tag IDs to move. |
| [in] | dest_tag_id | The destination tag ID. |
| [in] | is_moved_as_child | Whether to move as child of destination. |
|
inline |
Set the current PDF document as a tagged PDF.
|
inline |
Set tag property actual text for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | actual_text | The actual text to set. |
|
inline |
Set tag property alternate text for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | alternate_text | The alternate text to set. |
|
inline |
Set tag property ID for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | id | The ID to set. |
|
inline |
Set tag property language for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | language | The language to set. |
|
inline |
Set tag property title for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | title | The tag title to set. |
|
inline |
Set tag property type for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSDK.TagTreeItemData.item_id of items returned by FSDK.TagTreeEditor.GetTagTree. |
| [in] | type | The tag type to set. |
|
static |
Enumeration for artifact attach-to-side type.
Values of this enumeration should be used alone.Artifact attach side: none.
|
static |
Enumeration for artifact type.
Values of this enumeration should be used alone.Artifact type: page-level artifact.