Table of Contents

Class StructureBuilder

Namespace
PdfSharp.UniversalAccessibility
Assembly
PdfSharp.dll

Helper class that adds structure to PDF documents.

public class StructureBuilder
Inheritance
object
StructureBuilder

Properties

CurrentStructureElement

Gets the current structure element.

Methods

AddLinkAnnotation(PdfStructureElement, PdfLinkAnnotation, string)

Connects a link annotation on the current page with a link element started by BeginLinkElement(), and sets the annotation's alternative description.

BeginArtifact()

Starts an artifact.

BeginBlockLevelElement(string)

Starts a block-level element.

BeginElement(PdfLinkAnnotation, string)

Starts a link element.

BeginElement(PdfBlockLevelElementTag)

Starts a block-level element.

BeginElement(PdfGroupingElementTag)

Starts a grouping element.

BeginElement(PdfIllustrationElementTag, string, XRect)

Starts an illustration element.

BeginElement(PdfInlineLevelElementTag)

Starts an inline-level element.

BeginGroupingElement(string)

Starts a grouping element.

BeginIllustrationElement(string, string, XRect)

Starts an illustration element.

BeginInlineLevelElement(string)

Starts an inline-level element.

BeginLinkElement()

Starts a link element for content that is drawn before its link annotation exists, as in text layout. Pass the returned element and the annotation to AddLinkAnnotation(PdfStructureElement, PdfLinkAnnotation, string) once the annotation is added to the page; the element can be ended before that.

End()

Ends the current element.

EndMarkedContentsWithId()

Ends all open marked contents that have a marked content with ID.

SetAltText(string)

Sets the content of the "/Alt" (alternative text) key. Used e.g. for illustrations.

SetColSpan(int)

Sets the colspan of a table cell.

SetExpandedText(string)

Sets the content of the "/E" (expanded text) key. Used for abbreviations.

SetLanguage(string)

Sets the content of the "/Lang" (language) key. The chosen language is used for all children of the current structure element until a child has a new language defined.

SetRowSpan(int)

Sets the row span of a table cell.

SetScope(PdfTableHeaderScope)

Sets the scope of a table header cell (TH): the cells of its row, its column, or both.