|
Foxit PDF SDK
|
Instance Methods | |
| (FSTagTreeItemArray *) | - addNewTag:type:title: |
| Add a new tag to the tag tree. More... | |
| (FSTagTreeItemArray *) | - addTagForAnnotation:annot:page_index:selected_tag_id: |
| Add tag for annotation. More... | |
| (BOOL) | - changeTagToArtifact:artifact_type:artifact_to_side: |
| Change tag to artifact. More... | |
| (FSTagTreeItemArray *) | - createTagFromSelectionByContent:selected_tag_id: |
| Create tag from selection by content. More... | |
| (FSTagTreeItemArray *) | - createTagFromSelectionByElement:selected_tag_id: |
| Create tag from selection by element. More... | |
| (FSTagTreeItemArray *) | - createTagFromSelectionByTag:last_selected_tag_id: |
| Create tag from selection by tag. More... | |
| (FSTagTreeItemArray *) | - createTagFromSelectionByText:selected_text_rects:selected_tag_id: |
| Create tag from selection by text. More... | |
| (FSTagTreeItemArray *) | - deleteEmptyTags: |
| Delete empty tags from the tag tree. More... | |
| (FSTagTreeItemArray *) | - deleteTags: |
| Delete specified tags from the tag tree. More... | |
| (NSArray< NSData * > *) | - findTagFromSelection: |
| Find tag from selection. More... | |
| (NSString *) | - getAllContents: |
| Get all contents of a specified tag item. More... | |
| (NSArray< NSData * > *) | - getContentTreeItemIDsByTagItemID: |
| Get content tree item IDs by tag item ID. More... | |
| (FSTagProperty *) | - getTagPropertyByID: |
| Get tag property by tag item ID. More... | |
| (FSTagTreeItemArray *) | - getTagTree |
| Get the tag tree of the current PDF document. More... | |
| (FSTagTreeMenuItemDataArray *) | - getTagTreeContextMenuItems: |
| Get context menu items for tag tree. More... | |
| (id) | - initWithOther: |
| Constructor, with another tag editor object. More... | |
| (id) | - initWithPdf_doc: |
| Constructor. More... | |
| (BOOL) | - isEmpty |
| Check whether current object is empty or not. More... | |
| (FSTagTreeItemArray *) | - moveTags:dest_tag_id:is_moved_as_child: |
| Move tags in the tag tree. More... | |
| (BOOL) | - setDocAsTaggedPDF |
| Set the current PDF document as a tagged PDF. More... | |
| (BOOL) | - setTagPropertyActualText:actual_text: |
| Set tag property actual text for a specified tag item. More... | |
| (BOOL) | - setTagPropertyAlternateText:alternate_text: |
| Set tag property alternate text for a specified tag item. More... | |
| (BOOL) | - setTagPropertyLanguage:language: |
| Set tag property language for a specified tag item. More... | |
| (BOOL) | - setTagPropertyTitle:title: |
| Set tag property title for a specified tag item. More... | |
| (BOOL) | - setTagPropertyType:type: |
| Set tag property type for a specified tag item. More... | |
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 FSLibrary::initialize:key: with a key including "Accessibility" module.
| - (FSTagTreeItemArray *) addNewTag: | (NSString *) | selected_tag_id | |
| type: | (NSString *) | type | |
| title: | (NSString *) | title | |
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. |
| - (FSTagTreeItemArray *) addTagForAnnotation: | (BOOL) | is_tag_annotations | |
| annot: | (FSAnnot*) | annot | |
| page_index: | (int) | page_index | |
| selected_tag_id: | (NSString *) | selected_tag_id | |
Add tag for annotation.
| [in] | is_tag_annotations | Whether to tag annotations. |
| [in] | annot | The annotation object. |
| [in] | page_index | The page index. Valid range: from 0 to (count-1), where count is returned by function FSPDFDoc::getPageCount. |
| [in] | selected_tag_id | The selected tag ID. |
| - (BOOL) changeTagToArtifact: | (NSArray<NSData *> *) | selected_tag_ids | |
| artifact_type: | (FSTagTreeEditorArtifactType) | artifact_type | |
| artifact_to_side: | (FSTagTreeEditorArtifactAttachToSideType) | artifact_to_side | |
Change tag to artifact.
| [in] | selected_tag_ids | The selected tag IDs. |
| [in] | artifact_type | The artifact type. Please refer to . |
| [in] | artifact_to_side | The artifact attach to side type. Please refer to . |
| - (FSTagTreeItemArray *) createTagFromSelectionByContent: | (NSArray<NSData *> *) | selected_content_ids | |
| selected_tag_id: | (NSString *) | selected_tag_id | |
Create tag from selection by content.
| [in] | selected_content_ids | The selected content IDs. |
| [in] | selected_tag_id | The selected tag ID. |
| - (FSTagTreeItemArray *) createTagFromSelectionByElement: | (int) | page_index | |
| selected_tag_id: | (NSString *) | selected_tag_id | |
Create tag from selection by element.
| [in] | page_index | The page index. Valid range: from 0 to (count-1), where count is returned by function FSPDFDoc::getPageCount. |
| [in] | selected_tag_id | The selected tag ID. |
| - (FSTagTreeItemArray *) createTagFromSelectionByTag: | (NSArray<NSData *> *) | selected_tag_ids | |
| last_selected_tag_id: | (NSString *) | last_selected_tag_id | |
Create tag from selection by tag.
| [in] | selected_tag_ids | The selected tag IDs. |
| [in] | last_selected_tag_id | The last selected tag ID. |
| - (FSTagTreeItemArray *) createTagFromSelectionByText: | (int) | page_index | |
| selected_text_rects: | (FSRectFArray*) | selected_text_rects | |
| selected_tag_id: | (NSString *) | selected_tag_id | |
Create tag from selection by text.
| [in] | page_index | The page index. Valid range: from 0 to (count-1), where count is returned by function FSPDFDoc::getPageCount. |
| [in] | selected_text_rects | The selected text rectangles. |
| [in] | selected_tag_id | The selected tag ID. |
| - (FSTagTreeItemArray *) deleteEmptyTags: | (NSArray<NSData *> *) | selected_tag_ids |
Delete empty tags from the tag tree.
| [in] | selected_tag_ids | The array of tag IDs to check for empty tags. |
| - (FSTagTreeItemArray *) deleteTags: | (NSArray<NSData *> *) | selected_tag_ids |
Delete specified tags from the tag tree.
| [in] | selected_tag_ids | The array of tag IDs to delete. |
| - (NSArray< NSData * > *) findTagFromSelection: | (NSArray<NSData *> *) | selected_tag_ids |
Find tag from selection.
| [in] | selected_tag_ids | The selected tag IDs. |
| - (NSString *) getAllContents: | (NSString *) | selected_tag_id |
Get all contents of a specified tag item.
| [in] | selected_tag_id | The selected tag ID. |
| - (NSArray< NSData * > *) getContentTreeItemIDsByTagItemID: | (NSString *) | selected_tag_id |
Get content tree item IDs by tag item ID.
| [in] | selected_tag_id | The selected tag ID. |
| - (FSTagProperty *) getTagPropertyByID: | (NSString *) | item_id |
Get tag property by tag item ID.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| - (FSTagTreeItemArray *) getTagTree |
Get the tag tree of the current PDF document.
| - (FSTagTreeMenuItemDataArray *) getTagTreeContextMenuItems: | (FSTagTreeMenuInputData*) | input_data |
Get context menu items for tag tree.
| [in] | input_data | The input data for context menu. |
| - (id) initWithOther: | (FSTagTreeEditor*) | other |
Constructor, with another tag editor object.
| [in] | other | Another tag editor object. |
| - (id) initWithPdf_doc: | (FSPDFDoc*) | pdf_doc |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| - (BOOL) isEmpty |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| - (FSTagTreeItemArray *) moveTags: | (NSArray<NSData *> *) | source_tag_ids | |
| dest_tag_id: | (NSString *) | dest_tag_id | |
| is_moved_as_child: | (BOOL) | is_moved_as_child | |
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. |
| - (BOOL) setDocAsTaggedPDF |
Set the current PDF document as a tagged PDF.
| - (BOOL) setTagPropertyActualText: | (NSString *) | item_id | |
| actual_text: | (NSString *) | actual_text | |
Set tag property actual text for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| [in] | actual_text | The actual text to set. |
| - (BOOL) setTagPropertyAlternateText: | (NSString *) | item_id | |
| alternate_text: | (NSString *) | alternate_text | |
Set tag property alternate text for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| [in] | alternate_text | The alternate text to set. |
| - (BOOL) setTagPropertyLanguage: | (NSString *) | item_id | |
| language: | (NSString *) | language | |
Set tag property language for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| [in] | language | The language to set. |
| - (BOOL) setTagPropertyTitle: | (NSString *) | item_id | |
| title: | (NSString *) | title | |
Set tag property title for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| [in] | title | The tag title to set. |
| - (BOOL) setTagPropertyType: | (NSString *) | item_id | |
| type: | (NSString *) | type | |
Set tag property type for a specified tag item.
| [in] | item_id | The tag item ID, obtained from FSTagTreeItemData::item_id of items returned by FSTagTreeEditor::getTagTree. |
| [in] | type | The tag type to set. |