Table of Contents

Enum StructureRole

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

The semantic role of a StructureMark, named after the PDF standard structure type it maps to.

public enum StructureRole : byte

Fields

Document = 0

The document root (/Document).

Section = 1

A section (/Sect).

Paragraph = 2

A paragraph (/P).

Heading1 = 3

A level 1 heading (/H1). Levels 2-6 follow consecutively.

Heading2 = 4

A level 2 heading (/H2).

Heading3 = 5

A level 3 heading (/H3).

Heading4 = 6

A level 4 heading (/H4).

Heading5 = 7

A level 5 heading (/H5).

Heading6 = 8

A level 6 heading (/H6).

List = 9

A list (/L).

ListItem = 10

A list item (/LI).

ListLabel = 11

A list item's label (/Lbl) — the bullet or number.

ListBody = 12

A list item's body (/LBody).

Table = 13

A table (/Table).

TableRow = 14

A table row (/TR).

TableHeaderCell = 15

A table header cell (/TH).

TableCell = 16

A table data cell (/TD).

Figure = 17

An illustration (/Figure).

Caption = 18

A caption (/Caption).

Artifact = 19

Content that carries no meaning and must be hidden from assistive technology (page furniture, decorative rules). Emitted as an artifact, not a structure element.

A hyperlink (PDF Link), holding the link's text and an OBJR to its annotation. PDF/UA 7.18.5 requires both: an annotation a reader can activate but no element describing it is a link only a sighted user knows is there.

Remarks

The roles are deliberately the ones a Word document can actually justify from its own model. A role that would have to be guessed from page geometry is not here: inventing structure is worse than omitting it, because a screen reader trusts what it is told.