HPDFXFADecodeButtonCaption

Unit: HPDFXFAHeadless

function HPDFXFADecodeButtonCaption(const Text: UnicodeString;
  const Style: AnsiString; const Families: THPDFHeadlessRichTextFontFamilies;
  const Options: TXFAHeadlessPDFOptions; PreserveFontFamilyLists: Boolean;
  out DefaultStyle: THPDFHeadlessRichTextRun): THPDFHeadlessRichTextRuns;

Decodes the current scalar or XHTML pushbutton caption using the same template defaults and parser as native caption appearance preparation

Families must contain one through sixteen declared family labels; this function uses the labels for decoding and does not read or mutate their program arrays

DefaultStyle reports the effective template size, color, alignment, weight, posture and declared typeface; the returned runs preserve inline formatting and paragraph boundaries

Set PreserveFontFamilyLists to retain ordered authored labels in each run's FontFamilyCandidates, including labels that are not configured yet, before resolving an installed-font catalogue

The scalar path takes Unicode Text directly; the rich path decodes the current boolcaptionrichhex metadata and applies object, code-unit and cancellation limits from Options

The caller retains ownership of input arrays and owns the returned managed run array; this function performs no document mutation, GDI query or stream write