StructElement Class Documentation

class StructElement : SystemIDisposable

Namespace:Datalogics::PDFL

Inherits from:
SystemIDisposable

Detailed Description

Internal wrapper for a single node in the PDF logical structure tree.

Owns a non-owning reference to its CDocument. Exposes type (/S) access, the backing dict (for arbitrary attribute reads/writes), child creation, and marked-content reference insertion.

Property Documentation

Document

Document Document[get]

KidCount

int KidCount[get]

PDFDict

PDFDict PDFDict[get]

Type

string Type[get]

Member Function Documentation

AddMarkedContentRef

void AddMarkedContentRef(Page page, Container container)

Parameters

page: Page
container: Container

Returns:

void

Insert a marked-content reference using the given Container. /StructParents on the page and the parent tree are wired automatically.

Dispose

void Dispose()

Returns:

void

ParentIsTreeRoot

bool ParentIsTreeRoot()

Returns:

bool

True when this element's immediate parent is the struct tree root. Avoids allocating a CStructElement wrapper just to discard it.