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

$_bounds

$_delimiterType

The delimiter type of the word.

$_parts

The initial words that were used to create this word.

$_word

The resulting word in a specific encoding.


Static Methods

merge()

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 : integer
 

cleanUp()

Release memory and cycled references

getBounds()

getDelimiterType()

Get the delimiter type.

getFilterId()

Get the id of the filter instance that accepted this result.

getGlyphs()

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' ]
): string

Get the words string value in a specific encoding.

Parameters
$encoding : string
 

setDelimiterType()

public SetaPDF_Extractor_Result_WordWithGlyphs::setDelimiterType (
int $delimiterType
): void

Set the delimiter type.

Parameters
$delimiterType : int