Interface: PdfStructureOptions
Accessibility metadata and attributes for tagged PDF structure elements.
Properties
| Property | Type | Description |
|---|---|---|
actualText? | string | Replacement text exposed to assistive technology. |
altText? | string | Alternate text for tagged non-text content. |
artifactType? | "Pagination" | "Layout" | "Page" | Artifact type classification for tagged PDF content. "Pagination" for headers/footers, "Layout" for typographic ornaments, "Page" for watermarks. Emitted as /Type in the /Artifact BMC/EMC pair. |
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. |
attributes? | Record<string, PdfStructureAttributeValue> | Structure attributes to emit for the tagged element. |
boundingBox? | PdfBoundingBox | Bounding box associated with the structure element. |
expansion? | string | Abbreviation or acronym expansion for the structure element (/E). Used by screen readers (PDF/UA accessibility attribute). |
language? | string | BCP 47 language tag for document or structure content. |
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. |
phoneme? | string | Pronunciation guide for the structure element (/Phoneme). Used by screen readers (PDF/UA accessibility attribute). |