setasign\SetaPDF2\Core\Canvas\GraphicState
Text A class representing a text graphic state.
File: /SetaPDF v2/Core/Canvas/GraphicState/Text.php
Old class name (alias):
\SetaPDF_Core_Canvas_GraphicState_Text
Class hierarchy
Summary
Methods
- __construct()
- _getFontBBoxVector()
- _getValue()
- _setValue()
- begin()
- cleanUp()
- end()
- getBottomUserSpace()
- getCharacterSpacing()
- getFont()
- getFontSize()
- getLeading()
- getLineMatrix()
- getRenderingMode()
- getRise()
- getScaling()
- getTextMatrix()
- getTopUserSpace()
- getWordSpacing()
- moveToNextLine()
- moveToNextLineAndShowText()
- moveToStartOfNextLine()
- setCharacterSpacing()
- setFont()
- setLeading()
- setLineMatrix()
- setRenderingMode()
- setRise()
- setScaling()
- setTextMatrix()
- setWordSpacing()
- showText()
- showTextStrings()
- toTextSpace()
- toUserSpace()
Constants
CHARACTER_SPACING
Data name constant
FONT
FONT_SIZE
LEADING
LINE_MATRIX
Data name constant
RENDERING_MODE
Data name constant
RISE
SCALING
TEXT_MATRIX
Data name constant
WORD_SPACING
Data name constant
Properties
$_graphicState
protected \SetaPDF_Core_Canvas_GraphicState Text::$_graphicState
The main graphic state from which this text graphic state is inherited/created from.
Methods
__construct()
moveToNextLine()
Move to the next line.
The "'" operator.
Parameters
- $x : float
- $y : float
- $setLeading : bool
moveToNextLineAndShowText()
public Text::moveToNextLineAndShowText (
string $text,
?float $wordSpacing = null,
?float $charSpacing = null
): $this?float $wordSpacing = null,
?float $charSpacing = null
Moves to the start of the next line and shows a text string.
Parameters
- $text : string
- $wordSpacing : ?float
- $charSpacing : ?float
Exceptions
setFont()
setLineMatrix()
public Text::setLineMatrix (
float|\SetaPDF_Core_Geometry_Matrix $aOrMatrix,
?float $b = null,
?float $c = null,
?float $d = null,
?float $e = null,
?float $f = null
): $this?float $b = null,
?float $c = null,
?float $d = null,
?float $e = null,
?float $f = null
Sets the current line matrix.
Parameters
- $aOrMatrix : float|\SetaPDF_Core_Geometry_Matrix
- $b : ?float
- $c : ?float
- $d : ?float
- $e : ?float
- $f : ?float
setTextMatrix()
public Text::setTextMatrix (
float|\SetaPDF_Core_Geometry_Matrix $aOrMatrix,
?float $b = null,
?float $c = null,
?float $d = null,
?float $e = null,
?float $f = null
): $this?float $b = null,
?float $c = null,
?float $d = null,
?float $e = null,
?float $f = null
Sets the current text matrix.
Parameters
- $aOrMatrix : float|\SetaPDF_Core_Geometry_Matrix
- $b : ?float
- $c : ?float
- $d : ?float
- $e : ?float
- $f : ?float
toTextSpace()
public Text::toTextSpace (
?\SetaPDF_Core_Geometry_Vector $vector = null
): \SetaPDF_Core_Geometry_VectorConverts a vectors values to the text space coordinate system.
Parameters
- $vector : ?\SetaPDF_Core_Geometry_Vector
toUserSpace()
public Text::toUserSpace (
?\SetaPDF_Core_Geometry_Vector $vector = null
): \SetaPDF_Core_Geometry_VectorConverts a vectors values to the user space coordinate system.
Parameters
- $vector : ?\SetaPDF_Core_Geometry_Vector