THPDFShowTextFormat Type

How THPDFPage.ShowUnicodeText interprets its Text parameter

THPDFShowTextFormat = (stfAuto, stfUnicode, stfHex);

stfAuto, the default, keeps the historical rule in place: 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 for a single hexadecimal code

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

Paragraph layout passes the explicit mode through, so a secondary right-to-left run cannot override the resolved paragraph direction

ShowUnicodeText