sempdf
sempdf v1.9.1Interfaces

Interface: PdfStructureOptions

sempdf v1.9.1


sempdf / PdfStructureOptions

Defined in: src/types.ts:334

Accessibility metadata and attributes for tagged PDF structure elements.

Properties

PropertyTypeDescriptionDefined in
actualText?stringReplacement text exposed to assistive technology.src/types.ts:340
altText?stringAlternate 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?PdfBoundingBoxBounding box associated with the structure element.src/types.ts:344
expansion?stringAbbreviation or acronym expansion for the structure element (/E). Used by screen readers (PDF/UA accessibility attribute).src/types.ts:371
id?stringUnique identifier for this structure element (/ID). Required on PDF/UA-1 Note elements.src/types.ts:336
language?stringBCP 47 language tag for document or structure content.src/types.ts:342
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.src/types.ts:353
phoneme?stringPronunciation guide for the structure element (/Phoneme). Used by screen readers (PDF/UA accessibility attribute).src/types.ts:366

On this page