setasign\SetaPDF2\FormFiller\Field

DefaultAppearanceData Helper class to parse data from the default apperance entry of a form field.

File: /SetaPDF v2/FormFiller/Field/DefaultAppearanceData.php
Old class name (alias): \SetaPDF_FormFiller_Field_DefaultAppearanceData

Class hierarchy

Summary

Properties

$_fontName

The font name.

$_fontSize

protected float DefaultAppearanceData::$_fontSize = 0.0

The font size.


Methods

__construct()

public DefaultAppearanceData::__construct (
string $daString
)

The constuctor.

Parameters
$daString : string

The default appearance string.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

Throws \setasign\SetaPDF2\Core\Parser\Pdf\InvalidTokenException

_onNonstrokingColor()

public DefaultAppearanceData::_onNonstrokingColor (
array $arguments
): void

Callback of the content parser which is called if a nonstroking color operator is matched (g, rg, k).

Parameters
$arguments : array
 

_onTextFont()

public DefaultAppearanceData::_onTextFont (
array $arguments
): void

Callback of the content parser which is called if the text font operator is matched (Tf).

Parameters
$arguments : array
 
Exceptions

Throws Exception

getFontName()

public DefaultAppearanceData::getFontName (
void
): string

Get the font name.

getFontSize()

public DefaultAppearanceData::getFontSize (
void
): float

Get the font size.

getTextColor()