Set Tagged PDFs Element Properties
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 for elements. Following code snippet shows how to set custom tag name:
Adding Structure Element into Elements
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:
Setting Note Structure Element
Aspose.PDF for Java 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: