SetaPDF_Extractor_Result_WordWithGlyphs This class represnts a single word including its glyphs

File: /SetaPDF v2/Extractor/Result/WordWithGlyphs.php

Class hierarchy

Implements

Summary

Static Properties

$_ignoreConstructor

static private bool SetaPDF_Extractor_Result_WordWithGlyphs::$_ignoreConstructor = false

Defines if the constructor logic will be ignored or not.


Properties

$_bounds

protected null|SetaPDF_Extractor_Result_Bounds[] SetaPDF_Extractor_Result_WordWithGlyphs::$_bounds

The bounds of this word.

$_glyphs

protected SetaPDF_Extractor_Result_Glyph[] SetaPDF_Extractor_Result_WordWithGlyphs::$_glyphs

The glyphs of this word.

$_parts

protected self[] SetaPDF_Extractor_Result_WordWithGlyphs::$_parts = array()

The initial words that were used to create this word.

$_word

protected array SetaPDF_Extractor_Result_WordWithGlyphs::$_word = array()

The resulting word in a specific encoding.


Static Methods

merge()

public static SetaPDF_Extractor_Result_WordWithGlyphs::merge (
self $a, self $b, string $resultingString
): SetaPDF_Extractor_Result_WordWithGlyphs

Merges two SetaPDF_Extractor_Result_WordWithGlyphs instances into a new one.

The words text-content will be $resultingString.

Parameters
$a : self
 
$b : self
 
$resultingString : string

In UTF-8 encoding.


Methods

__construct()

cleanUp()

Release memory and cycled references

getBounds()

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 sting value in a specific encoding.

Parameters
$encoding : string