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,
bool $cidset = false
)
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.$cidset(bool): True to add a CIDSet stream to the descriptor of each subset CIDFont (PDF/A-1).
Throws:
Source: src/Output.php:95
getFontsBlock()
Returns the PDF fonts block
public getFontsBlock(): string
Returns: string
Source: src/Output.php:125
getObjectNumber()
Returns current PDF object number
public getObjectNumber(): int
Returns: int
Source: src/Output.php:117
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:153
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:165