Setting Structure Elements Properties

In order to set structure elements properties in a Tagged PDF Document, Aspose.PDF offers CreateSectElement and CreateHeaderElement methods of ITaggedContent interface.

Following code snippet shows how to set structure elements properties of a Tagged PDF Document:

Setting Text Structure Elements

In order to set text structure elements of a Tagged PDF Document, Aspose.PDF offers ParagraphElement class. Following code snippet shows how to set text structure elements of a Tagged PDF Document:

Setting Text Block Structure Elements

In order to set text block structure elements of a Tagged PDF Document, Aspose.PDF offers HeaderElement and ParagraphElement classes. You can append objects of these classes as a child of StructureElement object. Following code snippet shows how to set text block structure elements of a Tagged PDF Document:

Setting Inline Structure Elements

In order to set inline structure elements of a Tagged PDF Document, Aspose.PDF offers SpanElement and ParagraphElement classes. You can append objects of these classes as a child of StructureElement object. Following code snippet shows how to set inline structure elements of a Tagged PDF Document:

Setting Custom Tag Name

In order to set a custom tag name of the elements of a Tagged PDF Document, Aspose.PDF offers SetTag method of StructureElement class for elements. Following code snippet shows how to set custom tag name:

Adding Structure Element into Elements

This feature is supported by version 19.4 or greater.

In order to set link structure elements in a Tagged PDF Document, Aspose.PDF offers CreateLinkElement method of ITaggedContent interface. Following code snippet shows how to set structure elements in paragraph with text of Tagged PDF Document:

This feature is supported by version 19.4 or greater.

Aspose.PDF for .NET API also allows you to add link structure elements. Following code snippet shows how to add link structure element into Tagged PDF Document:

Setting Note Structure Element

Aspose.PDF for .NET API also allows you to add NoteElement in a tagged PDF document. Following code snippet shows how to add note element in Tagged PDF Document:

Setting Language and Title

This feature is supported by version 19.6 or greater.

Aspose.PDF for .NET API also allows you to set language and title for a document according to specification PDF/UA. The language can be set up as for whole document as for its separate structural elements. Following code snippet shows how to et language and title in Tagged PDF Document: