![]() |
PDFix SDK
7.2.0
|
PdsStructTree class. More...
#include <pdfix.h>
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 PdsClassMap * | CreateClassMap ()=0 |
Creates the PdsClassMap object for the specified structure tree root if does not exist. More... | |
virtual bool | RemoveClassMap ()=0 |
Removes the PdsClassMap object for the specified structure tree root. More... | |
virtual PdsObject * | GetChildObject (int index)=0 |
virtual int | GetNumChildren ()=0 |
Gets the number of children of the structure tree root. More... | |
virtual PdsRoleMap * | GetRoleMap ()=0 |
Gets the PdsRoleMap object for the specified structure tree root. More... | |
virtual PdsRoleMap * | CreateRoleMap ()=0 |
Create the PdsRoleMap object for the specified structure tree root if does not exist. More... | |
virtual bool | RemoveRoleMap ()=0 |
Removes the PdsRoleMap object for the specified structure tree root. More... | |
virtual PdsStructElement * | GetStructElementFromObject (PdsObject *object)=0 |
virtual bool | RemoveChild (int index)=0 |
Removes the specified child from the specified structure tree root. More... | |
virtual bool | AddChild (PdsStructElement *element, int index)=0 |
Adds the new PdsStructElement. More... | |
virtual PdsStructElement * | AddNewChild (const wchar_t *type, int index)=0 |
Creates a new (but empty) PdsStructElement of specific type. More... | |
virtual PdfDoc * | GetDoc ()=0 |
Return parent PdfDoc object. More... | |
virtual bool | RepairParentTree (PdfCancelProc cancel_proc, void *cancel_data)=0 |
Create or repair parent tree based on the struct tree. More... | |
virtual bool | RepairIdTree (PdfCancelProc cancel_proc, void *cancel_data)=0 |
Create or repair id 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 |
Adds the new PdsStructElement.
element | The element to add. |
index | Position where the child is inserted. If element currently has no children, index is ignored. |
|
pure virtual |
Creates a new (but empty) PdsStructElement of specific type.
type | The name representing the element's type. |
index | Position where the child is inserted. If element currently has no children, index is ignored. |
|
pure virtual |
Creates the PdsClassMap object for the specified structure tree root if does not exist.
|
pure virtual |
Create the PdsRoleMap object for the specified structure tree root if does not exist.
|
pure virtual |
Gets the child'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 child to obtain. |
|
pure virtual |
Gets the PdsClassMap object for the specified structure tree root.
|
pure virtual |
Gets the number of children 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 |
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.
object | Element's Pds object. |
|
pure virtual |
Removes the specified child from the specified structure tree root.
index | The index of the child. |
|
pure virtual |
Removes the PdsClassMap object for the specified structure tree root.
|
pure virtual |
Removes the PdsRoleMap object for the specified structure tree root.
|
pure virtual |
Create or repair id tree based on the struct tree.
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
|
pure virtual |
Create or repair parent tree based on the struct tree.
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |