| java.lang.Object | |
| ↳ | com.pdftron.pdf.struct.STree |
STree is 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 structure tree in each document.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
STree(Obj struct_dict)
Initialize a STree using an existing low-level Cos/SDF object.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static STree |
__Create(long impl, Object ref)
__ create.
| ||||||||||
| ClassMap |
getClassMap()
Get the class map.
| ||||||||||
| SElement |
getElement(String id)
Get the element with given id
| ||||||||||
| SElement |
getElement(byte[] id_buf)
Get the element with give ID
| ||||||||||
| SElement |
getKid(int index)
Get the kid at given index
| ||||||||||
| int |
getNumKids()
Get the number of kids of the structure tree root.
| ||||||||||
| RoleMap |
getRoleMap()
Get the role map.
| ||||||||||
| Obj |
getSDFObj()
Get the SDFObj.
| ||||||||||
| boolean |
isValid()
Checks if STree is valid.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Initialize a STree using an existing low-level Cos/SDF object.
Note: This constructor does not copy any data, but is instead the logical equivalent of a type cast.
| struct_dict | - a low-level (SDF/Cos) dictionary representing the . |
|---|
__ create.
| impl | the impl |
|---|---|
| ref | the ref |
Get the element with given id
| id | the input Element ID |
|---|
| PDFNetException |
|---|
Get the element with give ID
| id_buf | buffer containing the ID to search for |
|---|
| PDFNetException |
|---|
Get the kid at given index
| index | The index of the kid to obtain. |
|---|
| PDFNetException |
|---|
Get the number of kids of the structure tree root.
| PDFNetException |
|---|
Checks if STree is valid.
| PDFNetException |
|---|