modern-pdf-lib / StructureElementOptions
Interface: StructureElementOptions
Defined in: src/accessibility/structureTree.ts:77
Optional attributes for a structure element.
Properties
actualText?
optionalactualText:string
Defined in: src/accessibility/structureTree.ts:83
Replacement text that may be used instead of the element's content.
altText?
optionalaltText:string
Defined in: src/accessibility/structureTree.ts:81
Alternative text for the element (required for images by PDF/UA).
id?
optionalid:string
Defined in: src/accessibility/structureTree.ts:87
An optional unique identifier for the element.
language?
optionallanguage:string
Defined in: src/accessibility/structureTree.ts:85
The natural language for this element (BCP 47, e.g. "en-US").
title?
optionaltitle:string
Defined in: src/accessibility/structureTree.ts:79
The element title (a human-readable label).