Skip to main content

Interface: PdfStructureOptions

Accessibility metadata and attributes for tagged PDF structure elements.

Properties

PropertyTypeDescription
actualText?stringReplacement text exposed to assistive technology.
altText?stringAlternate 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?PdfBoundingBoxBounding box associated with the structure element.
expansion?stringAbbreviation or acronym expansion for the structure element (/E). Used by screen readers (PDF/UA accessibility attribute).
language?stringBCP 47 language tag for document or structure content.
mathML?stringMathML 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?stringPronunciation guide for the structure element (/Phoneme). Used by screen readers (PDF/UA accessibility attribute).