THotPDF.AcquireFontDecoderForDict Method

Private helper of THotPDF that builds or reuses the text decoder of a font dictionary which is not among a page's font resources, for instance a font belonging to a Form XObject

Declaration

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

Unit

HPDFDoc

Parameters

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

Return value

True when a decoder could be built

Usage notes

Related APIs