Table of contents
Namespace: Com\Tecnick\Pdf\Font
class Output extends OutFont
Extends: OutFont
Source: src/Output.php:39
Methods
__construct()
Initialize font data
public __construct(
array<string,TFontData> $fonts,
int $pon,
Encrypt $encrypt,
?File $fileHelper = null,
?FontSubsetCacheInterface $subsetCache = null
)
Parameters:
$fonts(array<string,TFontData>): Array of imported fonts data$pon(int): Current PDF Object Number$encrypt(Encrypt): Encrypt object$fileHelper(?File): Optional file helper for font loading.$subsetCache(?FontSubsetCacheInterface): Optional cache for subset font programs.
Throws:
Source: src/Output.php:83
getFontsBlock()
Returns the PDF fonts block
public getFontsBlock(): string
Returns: string
Source: src/Output.php:111
getObjectNumber()
Returns current PDF object number
public getObjectNumber(): int
Returns: int
Source: src/Output.php:103
getOutFontDict()
Get the PDF output string for the Font resources dictionary of all the loaded fonts.
public getOutFontDict(): string
Returns: string
Source: src/Output.php:139
getOutFontDictByKeys()
Get the PDF output string for the Font resources dictionary of an XObject.
public getOutFontDictByKeys(string[] $keys): string
Parameters:
$keys(string[]): Array of font keys.
Returns: string
Throws:
- Exception: if one of the keys is not a loaded font.
Source: src/Output.php:151