Show / Hide Table of Contents

Class 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.

Inheritance
System.Object
STree
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF.Struct
Assembly: PDFNetiOS.dll
Syntax
public class STree : IDisposable

Constructors

STree(PDFDoc)

Declaration
public STree(PDFDoc doc)
Parameters
Type Name Description
PDFDoc doc

STree(Obj)

Initialize a STree using an existing low-level Cos/SDF object.

Declaration
public STree(Obj struct_dict)
Parameters
Type Name Description
Obj struct_dict

a low-level (SDF/Cos) dictionary representing the .

Remarks

This constructor does not copy any data, but is instead the logical equivalent of a type cast.

Methods

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

GetElement(Byte[])

Gets the element.

Declaration
public SElement GetElement(byte[] buf)
Parameters
Type Name Description
System.Byte[] buf

the id_buf

Returns
Type Description
SElement

the element

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetKid(Int32)

Gets the kid.

Declaration
public SElement GetKid(int index)
Parameters
Type Name Description
System.Int32 index

The index of the kid to obtain.

Returns
Type Description
SElement

The kid at an array index in the structure tree root.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetNumKids()

Gets the num kids.

Declaration
public int GetNumKids()
Returns
Type Description
System.Int32

The number of kids of the structure tree root.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetSDFObj()

Gets the SDFObj.

Declaration
public Obj GetSDFObj()
Returns
Type Description
Obj

Pointer to the underlying SDF/Cos object.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Insert(SElement, Int32)

Inserts the specified kid element after the given position as a kid of the specified structure tree root.

Declaration
public void Insert(SElement kid, int insert_before)
Parameters
Type Name Description
SElement kid

the kid element

System.Int32 insert_before

The position after which the kid is inserted. If element currently has no kids, insert_before is ignored.

IsValid()

Checks if is valid.

Declaration
public bool IsValid()
Returns
Type Description
System.Boolean

true if this is a valid STree object, false otherwise.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

System.IDisposable
In This Article
Back to top Generated by DocFX