TextFitMode

Backed enum for the text-cell auto-fit mode: '' disables auto-fit, otherwise T, S or F select a fit strategy (see Text::normalizeTextCellFitMode()).

Namespace: Com\Tecnick\Pdf

Backing type: string

File: TextFitMode.php line 35

Backed enum for the text-cell auto-fit mode: ’’ disables auto-fit, otherwise T, S or F select a fit strategy (see Text::normalizeTextCellFitMode()).

Tags

Cases

Off

File: TextFitMode.php line 38

Truncate

File: TextFitMode.php line 41

Stretch

File: TextFitMode.php line 44

ShrinkFont

File: TextFitMode.php line 47

Methods

fromLoose()

File: TextFitMode.php line 58

public static fromLoose(string|self $value) : self

Accepts T, S or F (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Any other value disables auto-fit (Off), matching Text::normalizeTextCellFitMode().

Parameters

  • $value : string|self: Fit mode or enum case.

Return values

self