Table of contents
Namespace: Com\Tecnick\Pdf\Font
Extends: OutFont
File: Output.php line 39
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-font
- phpstan-import-type: TFontData from Load
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
- throws: Exception
- throws: Exception
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