Output

Com\Tecnick\Pdf\Font\Output

Namespace: Com\Tecnick\Pdf\Font

Extends: OutFont

File: Output.php line 39

Tags

Methods

__construct()

File: Output.php line 83

public __construct(array<string, TFontData> $fonts, int $pon, Encrypt $encrypt[, File|null $fileHelper = null ][, FontSubsetCacheInterface|null $subsetCache = null ]) : mixed

Parameters

  • $fonts : array<string, TFontData>: Array of imported fonts data
  • $pon : int: Current PDF Object Number
  • $encrypt : Encrypt: Encrypt object
  • $fileHelper : File|null = null: Optional file helper for font loading.
  • $subsetCache : FontSubsetCacheInterface|null = null: Optional cache for subset font programs.

Tags

getFontsBlock()

File: Output.php line 111

public getFontsBlock() : string

Return values

string

getObjectNumber()

File: Output.php line 103

public getObjectNumber() : int

Return values

int

getOutFontDict()

File: Output.php line 139

public getOutFontDict() : string

Return values

string

getOutFontDictByKeys()

File: Output.php line 151

public getOutFontDictByKeys(array<string|int, string> $keys) : string

Parameters

  • $keys : array<string|int, string>: Array of font keys.

Tags

  • throws: Exception if one of the keys is not a loaded font.

Return values

string