setasign\SetaPDF2\Extractor
TextItem A text item.
File: /SetaPDF v2/Extractor/TextItem.php
Old class name (alias):
\SetaPDF_Extractor_TextItem
Class hierarchy
Implements
Summary
Methods
- __construct()
- cleanUp()
- getBaseLineEnd()
- getBaseLineStart()
- getBounds()
- getCharacterSpacing()
- getEndMatrix()
- getFilterId()
- getFont()
- getFontSize()
- getLl()
- getLr()
- getNo()
- getOrientation()
- getRawString()
- getScaling()
- getStartMatrix()
- getString()
- getUl()
- getUr()
- getUserSpaceSpaceWidth()
- getWordSpacing()
- setFilterId()
Properties
$_baselineEnd
The baseline end vector.
$_baselineStart
The baseline start vector.
$_bounds
The bounds of this text item.
$_characterSpacing
The character spacing value.
$_end
The current transformation matrix when the text item ends.
$_filterId
The filter id which accepted this item.
$_font
The font object used by this text item.
$_fontSize
The font size.
$_orientation
The orientation of this text item.
$_spaceWidth
The space width of the font used by this text item.
$_start
The current transformation matrix when the text item starts.
$_ul
The upper left point/vector of this text item.
$_wordSpacing
The word spacing value.
Methods
__construct()
\SetaPDF_Core_Font $font,
float $fontSize,
float $characterSpacing,
float $wordSpacing,
float $scaling,
\SetaPDF_Core_Geometry_Matrix $start,
\SetaPDF_Core_Geometry_Matrix $end,
string $no
The constructor.
Parameters
- $rawString : string
- $font : \SetaPDF_Core_Font
- $fontSize : float
- $characterSpacing : float
- $wordSpacing : float
- $scaling : float
- $start : \SetaPDF_Core_Geometry_Matrix
- $end : \SetaPDF_Core_Geometry_Matrix
- $no : string
getCharacterSpacing()
Get the character spacing.
The value is from the local graphic state and not a value in the user space.
getFontSize()
Get the font size of this text item.
The value is from the local graphic state and not a value in the user space.
getScaling()
Get the scaling value.
The value is from the local graphic state and not a value in the user space.
getWordSpacing()
Get the word spacing defined in its graphic state.
The value is from the local graphic state and not a value in the user space.