Click or drag to resize

PdfTextContent Class

Represents a textual PDF content (a sequence of glyphs from a single face of a single font).
Inheritance Hierarchy

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.19
Syntax
public sealed class PdfTextContent : PdfVisualContentElement

The PdfTextContent type exposes the following members.

Properties
 NameDescription
Public propertyBounds Gets the bounds of the PdfTextContent.
(Overrides PdfVisualContentElementBounds)
Public propertyElementType Gets the Text value.
(Overrides PdfContentElementElementType)
Public propertyEncodedText

Gets or sets the sequence of character codes, with optionally individually positioned glyphs, that represent a PdfBasicFont-encoded text contained in this PdfTextContent element.

Caution note  Caution
When setting a PdfEncodedContentString value, note that the current font (retrieved with PdfTextContent.Format.Text.GetFont(Double) method) might not contain all the necessary information to correctly position, render and/or convert to Unicode all characters of the new PdfEncodedContentString value so set it at your own risk.
Public propertyLocation Gets the baseline origin location of the PdfTextContent.
Public propertyTextRenderingTransform

Gets the transformation from text space to device space of the parent PdfContentGroup.

To get the transformation from text space to device space of the page, append Transform matrices of all ancestor PdfContentGroups to TextRenderingTransform matrix.

Public propertyTextTransform

Gets or sets the transformation from text space to user space.

Text space is the coordinate system in which text is shown. Specifically, the origin of the first glyph shown by a text-showing operator is placed at the origin of text space. If text space has been translated, scaled, or rotated, then the position, size, or orientation of the glyph in user space is correspondingly altered.

Top
Methods
 NameDescription
Public methodGetGlyphOffsets Gets the offset of each glyph contained in this PdfTextContent from the starting point.
Public methodToString Returns a Unicode text contained in this PdfTextContent.
(Overrides ObjectToString)
Top
See Also