PdfTextElement Class

Represents a block of text to be rendered in a PDF document. Supports positioning, styling and multi-page continuation

Definition

Namespace: EvoPdf.Chromium
Assembly: EvoPdf.Chromium (in EvoPdf.Chromium.dll) Version: 12.5.0
C#
public class PdfTextElement
Inheritance
Object    PdfTextElement

Constructors

PdfTextElement Initializes a new instance of the PdfTextElement class with the specified text and font. Use PdfFontManager to create the font

Properties

Alignment The horizontal alignment of the text
ContinueOnNextPage If true, text that does not fit will continue rendering on the next page
Direction The direction in which the text is rendered (LTR or RTL) Default is LeftToRight.
Font The font used to render the text content created by PdfFontManager
Height The height of the text block. If zero or negative, the available page height is used
Leading The line spacing multiplier used when rendering text. This value is multiplied by the font size to determine the space between lines. If zero, a default value of 1.2 is used
OnPageRendered Optional callback triggered after rendering on each page. Receives the page number and the bounding box of the rendered area.
Text The text content to be rendered
Width The width of the text block. If zero or negative, the available page width is used
X The horizontal position (from the left margin) of the text block in points
Y The vertical position (from the top margin) of the text block in points

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also