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 the explicit paragraph transitions
Validate Unicode scalar pairs, XML characters, run sizes, colours, style and alignment before returning values; MaximumUnits bounds the total input UTF-16 units and the bounded markup expansion