SetaPDF_Extractor_Result_WordWithGlyphs This class represnts a single word including its glyphs
File: /SetaPDF v2/Extractor/Result/WordWithGlyphs.php
Class hierarchy
Implements
Summary
Properties
$_delimiterType
protected integer SetaPDF_Extractor_Result_WordWithGlyphs::$_delimiterType
The delimiter type of the word.
Static Methods
merge()
public static SetaPDF_Extractor_Result_WordWithGlyphs::merge (
SetaPDF_Extractor_Result_WordWithGlyphs $a, SetaPDF_Extractor_Result_WordWithGlyphs $b [, string $resultingString = null ]
): SetaPDF_Extractor_Result_WordWithGlyphsMerges two SetaPDF_Extractor_Result_WordWithGlyphs
instances into a new one.
The words text-content will be $resultingString.
Parameters
- $a : SetaPDF_Extractor_Result_WordWithGlyphs
- $b : SetaPDF_Extractor_Result_WordWithGlyphs
- $resultingString : string
In UTF-8 encoding.
Exceptions
Throws ReflectionException
Methods
__construct()
public SetaPDF_Extractor_Result_WordWithGlyphs::__construct (
SetaPDF_Extractor_Result_Glyph[] $glyphs [, integer $delimiterType = 0 ]
)The constructor.
Parameters
- $glyphs : SetaPDF_Extractor_Result_Glyph[]
- $delimiterType : integer
getBounds()
public SetaPDF_Extractor_Result_WordWithGlyphs::getBounds (
void
): SetaPDF_Extractor_Result_Bounds[]Get the bounds of this word.
Exceptions
Throws SetaPDF_Core_Exception
getGlyphs()
public SetaPDF_Extractor_Result_WordWithGlyphs::getGlyphs (
void
): SetaPDF_Extractor_Result_Glyph[]Get the glyphs of this word.
getParts()
Get all parts of this word.
If the word is not created by several words, this method will return itself.
getString()
public SetaPDF_Extractor_Result_WordWithGlyphs::getString (
[ string $encoding = 'utf-8' ]
): stringGet the words string value in a specific encoding.
Parameters
- $encoding : string