sempdf v1.9.1Interfaces
Interface: PdfStructureOptions
sempdf / PdfStructureOptions
Defined in: src/types.ts:334
Accessibility metadata and attributes for tagged PDF structure elements.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
actualText? | string | Replacement text exposed to assistive technology. | src/types.ts:340 |
altText? | string | Alternate text for tagged non-text content. | src/types.ts:338 |
associatedFiles? | object[] | Associated files embedded in the structure element. Each file is emitted as an EmbeddedFile stream and Filespec, and referenced from the StructElem /AF array. | src/types.ts:359 |
attributes? | Record<string, PdfStructureAttributeValue> | Structure attributes to emit for the tagged element. | src/types.ts:346 |
boundingBox? | PdfBoundingBox | Bounding box associated with the structure element. | src/types.ts:344 |
expansion? | string | Abbreviation or acronym expansion for the structure element (/E). Used by screen readers (PDF/UA accessibility attribute). | src/types.ts:371 |
id? | string | Unique identifier for this structure element (/ID). Required on PDF/UA-1 Note elements. | src/types.ts:336 |
language? | string | BCP 47 language tag for document or structure content. | src/types.ts:342 |
mathML? | string | MathML markup for a Formula structure element. Emitted as an associated file (Subtype application/mathml+xml, AFRelationship=Supplement) and referenced from the StructElem /AF array. Required by PDF/UA Mathematics for accessible mathematical content. | src/types.ts:353 |
phoneme? | string | Pronunciation guide for the structure element (/Phoneme). Used by screen readers (PDF/UA accessibility attribute). | src/types.ts:366 |