StructureElement
Defined in: src/core/types.ts:686
A structure element in a tagged PDF’s structure tree.
Properties
Section titled “Properties”actualText?
Section titled “actualText?”
readonlyoptionalactualText:string
Defined in: src/core/types.ts:696
The actual text content, if present.
altText?
Section titled “altText?”
readonlyoptionalaltText:string
Defined in: src/core/types.ts:698
Alternative text for accessibility, if present.
children
Section titled “children”
readonlychildren: readonlyStructureElement[]
Defined in: src/core/types.ts:704
Child structure elements.
readonlyoptionalid:string
Defined in: src/core/types.ts:692
The element ID, if present.
readonlyoptionallang:string
Defined in: src/core/types.ts:700
The language attribute (e.g., “en-US”), if present.
markedContentId?
Section titled “markedContentId?”
readonlyoptionalmarkedContentId:number
Defined in: src/core/types.ts:702
The marked content ID, or -1 if not set.
objectType?
Section titled “objectType?”
readonlyoptionalobjectType:string
Defined in: src/core/types.ts:690
The object type (role mapping), if present.
title?
Section titled “title?”
readonlyoptionaltitle:string
Defined in: src/core/types.ts:694
The title attribute, if present.
readonlytype:string
Defined in: src/core/types.ts:688
The element type (e.g., “P”, “H1”, “Table”, “Figure”).