Skip to content

StructureElement

@scaryterry/pdfium


Defined in: src/core/types.ts:686

A structure element in a tagged PDF’s structure tree.

readonly optional actualText: string

Defined in: src/core/types.ts:696

The actual text content, if present.


readonly optional altText: string

Defined in: src/core/types.ts:698

Alternative text for accessibility, if present.


readonly children: readonly StructureElement[]

Defined in: src/core/types.ts:704

Child structure elements.


readonly optional id: string

Defined in: src/core/types.ts:692

The element ID, if present.


readonly optional lang: string

Defined in: src/core/types.ts:700

The language attribute (e.g., “en-US”), if present.


readonly optional markedContentId: number

Defined in: src/core/types.ts:702

The marked content ID, or -1 if not set.


readonly optional objectType: string

Defined in: src/core/types.ts:690

The object type (role mapping), if present.


readonly optional title: string

Defined in: src/core/types.ts:694

The title attribute, if present.


readonly type: string

Defined in: src/core/types.ts:688

The element type (e.g., “P”, “H1”, “Table”, “Figure”).