[]
        
(Showing Draft Content)

StructTreeRoot

Class: StructTreeRoot

Represents the logical structure of a document (the structure tree root).

Obtain it from PdfDocument#structTreeRoot.

Extends

Accessors

children

Get Signature

get children(): StructElementCollection;

Gets the collection of nested StructElement objects (a view over StructTreeRoot#items).

Returns

StructElementCollection


classMap

Get Signature

get classMap(): ClassMap;

Gets the dictionary that maps name objects designating attribute classes to the corresponding collections of attribute objects. The class map is created if it does not yet exist.

Returns

ClassMap


hasClassMap

Get Signature

get hasClassMap(): boolean;

Gets a value indicating whether this structure tree root has a class map.

Returns

boolean


hasRoleMap

Get Signature

get hasRoleMap(): boolean;

Gets a value indicating whether this structure tree root has a role map.

Returns

boolean


id

Get Signature

get id(): number;

Gets the reference to the object.

Returns

number

Inherited from

ObjectBase.id


items

Get Signature

get items(): StructTreeItemCollection;

Gets the collection of nested StructTreeItem objects.

Returns

StructTreeItemCollection


namespaces

Get Signature

get namespaces(): NamespaceCollection;

Gets the collection of namespaces used within the document.

Returns

NamespaceCollection


om

Get Signature

get om(): ObjectManager;

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

ObjectBase.om


roleMap

Get Signature

get roleMap(): RoleMap;

Gets the dictionary that maps the names of structure types used in a document to their approximate equivalents in the set of standard structure types. The role map is created if it does not yet exist.

Returns

RoleMap

Methods

clear()

clear(): void;

Clears the collections of the StructTreeRoot: StructTreeRoot#items, the class map, and the role map.

Returns

void


free()

free(): void;

Detaches the object from the ObjectManager and deallocates its memory, if possible.

Returns

void

Inherited from

ObjectBase.free


rebind()

rebind(omTo): void;

Rebinds the object from the current ObjectManager to the specified one.

Parameters

omTo

ObjectManager

The new ObjectManager for the object.

Returns

void

Inherited from

ObjectBase.rebind