Skip to content

PDFSetTextFontAndSizeOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the Tf (set font and size) content stream operator.

public class PDFSetTextFontAndSizeOperator : PDFContentStreamOperator

Inheritance ObjectPDFContentStreamOperatorPDFSetTextFontAndSizeOperator

Constructors

PDFSetTextFontAndSizeOperator()

Initializes a new PDFSetTextFontAndSizeOperator object.

public PDFSetTextFontAndSizeOperator()

PDFSetTextFontAndSizeOperator(PDFCosName, Double)

Initializes a new PDFSetTextFontAndSizeOperator object.

public PDFSetTextFontAndSizeOperator(PDFCosName fontID, double fontSize)

Parameters

fontID PDFCosName
The form XObject ID in the /Resources dictionary.

fontSize Double
The font size.


Properties

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.


Font

Gets the font object.

public PDFFont Font { get; set; }

Property Value

PDFFont
The font that will be used to draw text.


FontID

Gets or sets the font ID.

public PDFCosName FontID { get; set; }

Property Value

PDFCosName
The font ID in the /Resources dictionary.


FontSize

Gets or sets the font size.

public double FontSize { get; set; }

Property Value

Double
The size of the font used to draw text.


OpCode

Gets the operator code.

public string OpCode { get; }

Property Value

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


Type

Gets or sets the operator type.

public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.