Skip to content

# PDFTextVisualObject

Namespace: O2S.Components.PDF4NET.Content

Defines a visual object that represents a text run displayed on the PDF page.

    public class PDFTextVisualObject : PDFVisualObject

Inheritance Object → PDFVisualObject → PDFTextVisualObject

## Properties

### CharacterSpacing

Get the character spacing.

    public double CharacterSpacing { get; internal set; }

Property Value

Double

### CTM

Get the current transformation matrix.

    public PDFMatrix CTM { get; internal set; }

Property Value

PDFMatrix
The active transformation when the object is drawn on the page.

### DisplayBounds

Gets the bounds of this text in visual coordinates.

    public PDFDisplayRectangle DisplayBounds { get; }

Property Value

PDFDisplayRectangle
a PDFDisplayRectangle object specifying the rectangular bounds of this text.

### GraphicsState

Gets the current graphics state.

    public PDFVisualObjectGraphicsState GraphicsState { get; internal set; }

Property Value

PDFVisualObjectGraphicsState
The graphics state that is in place when the visual object is displayed on the page.

### HorizontalScaling

Gets the horizontal scaling.

    public double HorizontalScaling { get; internal set; }

Property Value

Double

### MarkedContentIdentifier

Gets the marked content identifier.

    public int MarkedContentIdentifier { get; internal set; }

Property Value

Int32
An integer representing the id of the marked content sequence this visual object belongs to.

Remarks

A negative value means the visual object does not belong to a marked content sequence.

### OptionalContentGroup

Gets the optional content group or set this object belong to.

    public PDFOptionalContentBase OptionalContentGroup { get; internal set; }

Property Value

PDFOptionalContentBase
The optional content group or sets that includes this visual object.

### RenderingMode

Gets the text rendering mode.

    public PDFTextRenderingMode RenderingMode { get; internal set; }

Property Value

PDFTextRenderingMode
A PDFTextRenderingMode that specifies how the text run is rendered.

### StructureElement

Gets the structure element that includes this visual object.

    public PDFStructureElement StructureElement { get; }

Property Value

PDFStructureElement
A PDFStructureElement object that includes this visual object.

### TextLeading

Gets the text leading.

    public double TextLeading { get; internal set; }

Property Value

Double

### TextMatrix

Gets the text matrix.

    public PDFMatrix TextMatrix { get; internal set; }

Property Value

PDFMatrix

### TextRise

Gets the text rise.

    public double TextRise { get; internal set; }

Property Value

Double

### TextRun

Gets the text run represented by this visual object.

    public PDFTextRun TextRun { get; }

Property Value

PDFTextRun
A text run displayed on the PDF page.

### Type

Gets the object type.

    public PDFVisualObjectType Type { get; }

Property Value

PDFVisualObjectType
The type of the visual object.

### WordSpacing

Gets the word spacing.

    public double WordSpacing { get; internal set; }

Property Value

Double

## Methods

### ToString()

Converts the object to string representation.

    public string ToString()

Returns

String
The object as string.