SetaPDF_Extractor_Result_Word This class represents a single word
File: /SetaPDF v2/Extractor/Result/Word.php
Class hierarchy
Implements
Summary
Properties
$_delimiterType
protected integer SetaPDF_Extractor_Result_Word::$_delimiterType
The delimiter type of the word.
$_filterId
protected null|string SetaPDF_Extractor_Result_Word::$_filterId
The filter id of the first text item in.
Static Methods
merge()
public static SetaPDF_Extractor_Result_Word::merge (
SetaPDF_Extractor_Result_Word $a, SetaPDF_Extractor_Result_Word $b [, string $resultingString = null ]
): SetaPDF_Extractor_Result_WordMerges two SetaPDF_Extractor_Result_Word
instances into a new one.
The words text-content will be $resultingString.
Parameters
- $a : SetaPDF_Extractor_Result_Word
- $b : SetaPDF_Extractor_Result_Word
- $resultingString : string
In UTF-8 encoding.
Exceptions
Throws ReflectionException
Methods
__construct()
public SetaPDF_Extractor_Result_Word::__construct (
SetaPDF_Extractor_Result_Glyph[] $glyphs [, integer $delimiterType = 0 ]
)The constructor.
Parameters
- $glyphs : SetaPDF_Extractor_Result_Glyph[]
- $delimiterType : integer
Exceptions
Throws SetaPDF_Core_Exception
getParts()
Get all parts of this word.
If the word is not created by several words, this method will return itself.