TextBuilder
Overview
TextBuilder is a class in Aspose.PDF FOSS for .NET.
Appends text fragments to a PDF page by registering fonts in the page resources and writing content stream operators.
This class declares 5 methods for TextBuilder objects in .NET programs.
Available methods include: AppendParagraph, AppendText, TextBuilder.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
TextBuilder(page: Page) | Creates a text builder that writes text onto the given page. |
TextBuilder(page: Page, operatorCollection: BaseOperatorCollection) | Construct a TextBuilder bound to a page plus an operator-collection sink. |
AppendText(textFragments: List<TextFragment>) | Append a batch of text fragments in order. |
AppendText(textFragment: TextFragment) | Writes the fragment’s text to the page’s content stream at the fragment’s Position, using its text state, and registers the font it needs in the page resources. |
AppendParagraph(textParagraph: TextParagraph) | Append a text paragraph to the page. |