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 int 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_WordWithGlyphsSetaPDF_Extractor_Result_WordWithGlyphs $b,
string $resultingString = null
Merges 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()
The constructor.
Parameters
- $glyphs : SetaPDF_Extractor_Result_Glyph[]
- $delimiterType : int
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.