setasign\SetaPDF2\Extractor\Result

Glyph This class represnts a single glyph.

File: /SetaPDF v2/Extractor/Result/Glyph.php
Old class name (alias): \SetaPDF_Extractor_Result_Glyph

Class hierarchy

Implements

Summary

Properties

$_textItem

The text item of the glyph.


Methods

__construct()

The constructor.

Parameters
$textItem : \SetaPDF_Extractor_TextItem
 

__toString()

public Glyph::__toString (
void
): string

Implementation of the magic method __toString().

See

cleanUp()

public Glyph::cleanUp (
void
): void

Release memory and cycled references

getBaseLineEnd()

Returns the base line end vector of this glyph.

See

getBaseLineStart()

Returns the base line start vector of this glyph.

See

getBounds()

Gets the bounds of this glyph.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

getFilterId()

public Glyph::getFilterId (
void
): ?string

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

getOrientation()

public Glyph::getOrientation (
void
): float

Get the orientation value of this glyph.

See

getString()

public Glyph::getString (
string $encoding = 'utf-8'
): string

Get the string value of the glyph.

Parameters
$encoding : string
 

getTextItem()

Get the text item of this glyph.

getUserSpaceSpaceWidth()

public Glyph::getUserSpaceSpaceWidth (
void
): float

Get the user space width value of the space sign of the font for this glyph.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

See