![]() |
PDFix SDK
6.5.0
|
PdsStructTree class. More...
Public Member Functions | |
virtual PdsDictionary * | GetObject ()=0 |
Gets the dictionary object corresponding to the structure tree. More... | |
virtual PdsClassMap * | GetClassMap ()=0 |
Gets the PdsClassMap object for the specified structure tree root. More... | |
virtual PdsObject * | GetKidObject (int index)=0 |
virtual int | GetNumKids ()=0 |
Gets the number of kids of the structure tree root. More... | |
virtual PdsRoleMap * | GetRoleMap ()=0 |
Gets the PdsRoleMap object for the specified structure tree root. More... | |
virtual PdsStructElement * | AcquireStructElement (PdsObject *object)=0 |
virtual bool | RemoveKid (int index)=0 |
Removes the specified kid from the specified structure tree root. More... | |
virtual PdsStructElement * | CreateStructElement (const wchar_t *type, int index)=0 |
virtual PdfDoc * | GetDoc ()=0 |
Return parent PdfDoc object. More... | |
virtual bool | UpdateParentTree ()=0 |
Create parent tree based on the struct tree. More... | |
PdsStructTree class.
The root of the structure tree, which is a central repository for information related to a PDF document�s logical structure. There is at most one PDSTreeRoot in each document.
|
pure virtual |
Gets a PdsStructElement from a Pds object. The struct elements is cached, so that subsequent calls on the same object return The same PdsStructElement. The PdsStructElement remains in the cache as long as PdsStructTree exists or PdsStructElement::Release was not called. NOTE: After you are done using the structure element, release it using PdsStructElement::Release to release resources.
page_num | The page number of the page to get. The first page is 0. |
|
pure virtual |
Creates a new (but empty) PdsStructElement of specific type. CreateStructElement increments an element�s reference count. The element will not be released until the reference count is zero, or the application terminates. NOTE: After you are done using the element, release it using PdsStructElement::Release to release resources.
type | The name representing the element�s type. |
index | Position where the kid is inserted. If element currently has no kids, index is ignored. |
|
pure virtual |
Gets the PdsClassMap object for the specified structure tree root.
|
pure virtual |
Gets the kid's object at an array index in the specified structure tree root. The immediate children of the structure tree root shall be structure elements only.
index | Index of the kid to obtain. |
|
pure virtual |
Gets the number of kids of the structure tree root.
class_name | The string of a class name for which an associated attribute objects is found. |
|
pure virtual |
Gets the dictionary object corresponding to the structure tree.
|
pure virtual |
Gets the PdsRoleMap object for the specified structure tree root.
|
pure virtual |
Removes the specified kid from the specified structure tree root.
index | The index of the kid. |
|
pure virtual |
Create parent tree based on the struct tree.