Skip to content

# PDFShowText4Operator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the " (move to the next line and show a text string, using word spacing and character spacing) content stream operator.

    public class PDFShowText4Operator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFShowText4Operator

## Constructors

### PDFShowText4Operator()

Initializes a new PDFShowText4Operator object.

    public PDFShowText4Operator()

### PDFShowText4Operator(PDFCosString, Double, Double)

Initializes a new PDFShowText4Operator object.

    public PDFShowText4Operator(PDFCosString text, double wordSpacing, double characterSpacing)

Parameters

`text` PDFCosString
The text displayed by this operator as a COS string.

`wordSpacing` Double
The word spacing.

`characterSpacing` Double
The character spacing.

## Properties

### CharacterSpacing

Gets or sets the character spacing.

    public double CharacterSpacing { get; set; }

Property Value

Double
The character spacing.

### Context

Gets the content stream container from which the operator is extracted.

    public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
A content stream container object, a PDFPage or a PDFFormXObject.

### OpCode

Gets the operator code.

    public string OpCode { get; }

Property Value

String
The operator code as it is written in the content stream.

### Text

Gets or sets the text.

    public PDFCosString Text { get; set; }

Property Value

PDFCosString
The text displayed by this operator as a COS string.

### TextVisualObject

Gets the text painted by this operator.

    public PDFTextVisualObject TextVisualObject { get; }

Property Value

PDFTextVisualObject
A PDFTextVisualObject that describes the text painted by this operator.

Remarks

This property is set only when the PDFPageTransform.EnableExtendedOperatorInformation property is set to true on the object that processes this operator.

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.

### WordSpacing

Gets or sets the word spacing.

    public double WordSpacing { get; set; }

Property Value

Double
The word spacing.