---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/RichTextToFlatStructureTransformer
---

# RichTextToFlatStructureTransformer

## Overview

`RichTextToFlatStructureTransformer` is a class in Aspose.PDF FOSS for .NET.

Transforms rich text annotation content (XHTML with arbitrarily nested spans) into a flat structure where every leaf text node becomes a single &lt;span style="."&gt; with the fully-merged CSS from all ancestor elements.

This class provides 1 method for working with RichTextToFlatStructureTransformer objects in .NET programs.
Available methods include: `Transform`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Transform(input: string)` | Transforms the given XHTML rich-text string into a flat span structure. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)