StructureTreeBuilder
Overview
StructureTreeBuilder is a class in Aspose.PDF FOSS for .NET.
Builds a logical structure tree for a tagged PDF document.
This class provides 5 methods for working with StructureTreeBuilder objects in .NET programs.
Available methods include: AddRoleMapping, BuildParentTree, CreateElement, GetRoleMappings, StructureTreeBuilder.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
StructureTreeBuilder(document: Document) | Calls StructureTreeBuilder on this StructureTreeBuilder instance. |
CreateElement(structureType: string) | Create a top-level structure element (e.g., “Document”). |
AddRoleMapping(customRole: string, standardRole: string) | Add a role mapping that maps a custom structure type to a standard type. |
GetRoleMappings() | Get the current role mappings as a dictionary (custom role → standard role). |
BuildParentTree() | Finalize the structure tree and write it to the document catalog. |