THotPDF.AddPronunciationLexicon Method

Embeds a PLS pronunciation lexicon and appends its indirect file specification to the PDF 2.0 structure tree in lookup order

Declaration

function AddPronunciationLexicon(
  const FileName, Description: AnsiString;
  const LexiconBytes: TBytes): THPDFDictionaryObject;

Parameters and result

ValuePurpose
FileNameNon-empty embedded file name used by the Filespec and embedded-files name tree
DescriptionOptional human-readable Filespec/Desc text
LexiconBytesNon-empty XML bytes conforming to Pronunciation Lexicon Specification 1.0
ResultIndirect Filespec dictionary that owns the embedded lexicon reference

Behavior

Related APIs