THotPDF.AcquireFontDecoderForDict Method

Private helper of THotPDF that builds or reuses the text decoder of a font dictionary that is not in a page's font resources, such as a font of a Form XObject

Declaration

function AcquireFontDecoderForDict(FontDict: THPDFDictionaryObject; const ResourceName: AnsiString; out ADecoder: THPDFFontDecoder): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
FontDictFont dictionary to decode
ResourceNameResource name under which the content stream selects the font with Tf
ADecoderReceives the decoder that maps the font's character codes to Unicode and widths

Return value

True when a decoder could be built

Usage notes

Related APIs