THPDFShowTextFormat Type

How THPDFPage.ShowUnicodeText interprets its Text parameter

THPDFShowTextFormat = (stfAuto, stfUnicode, stfHex);

stfAuto, the default, keeps the historical rule: Text is read as hexadecimal only when it consists of hex digits in whole 4-digit units, so an ordinary word such as '2024' or 'CAFE' is taken as one hexadecimal code

stfUnicode always shows Text as characters, and stfHex always reads it as 4-digit hexadecimal units that name code points, or glyph IDs when HexIsGlyphIDs is true

Paragraph layout passes the explicit mode so a secondary right-to-left run does not override the resolved paragraph direction

ShowUnicodeText