HPDFHeadlessRichTextValues

procedure HPDFHeadlessRichTextValues(
  const Runs: THPDFHeadlessRichTextRuns; MaximumUnits: Integer;
  out PlainText, RichText: UnicodeString);

Derive the plain text and canonical XHTML from typed runs, preserving XML escaping and explicit paragraph transitions

Validate Unicode scalar pairs, XML characters, run sizes, colors, style and alignment before returning values; MaximumUnits bounds total input UTF-16 units and the bounded markup expansion

Native rich-text field behavior · Document API