Aspose.Pdf

What is Text?

Text is usually the main content in almost all kinds of documents including PDF documents. We use text with different fonts and colors to make certain parts of the text look more prominent and meaningful. We can add text paragraphs in PDF documents too with most of the text management features.

 

To add text in a PDF document using Aspose.Pdf , we make use of Text class. Text class is this specialization of Paragraph class. The Text class contains a collection of Segments . The Segment class represents a text string with specified text format such as font name and text color. If you want to use strings with different text format, you should use multiple Segments in the Text Paragraph .

 

The class hierarchy of Text class is represented in the diagram below: