THPDFPage.ShowUnicodeText Method

Shows a run of Unicode text, or of hexadecimal character codes, at the current text position inside a BeginText / EndText block, with optional right-to-left processing. Use it when you build the text object yourself; TextOut covers the usual case

Declaration

type
  THPDFShowTextFormat= (stfAuto, stfUnicode, stfHex);

procedure ShowUnicodeText(Text: WideString; HasRTLChars: boolean= false;
  HexIsGlyphIDs: boolean= false; AutoDetectRTL: boolean= True;
  TextFormat: THPDFShowTextFormat= stfAuto);

Unit

HPDFDoc

Parameters

NamePurpose
TextThe characters to show, or a string of 4-digit hexadecimal units when TextFormat selects or detects hexadecimal input
HasRTLCharsForces right-to-left processing of the run
HexIsGlyphIDsWith hexadecimal input, states that the units are glyph IDs of the current font rather than code points, so they are not inspected for right-to-left characters
AutoDetectRTLDetects right-to-left content when HasRTLChars is false
TextFormatstfUnicode always shows Text as characters; stfHex always reads it as 4-digit hexadecimal units; stfAuto (the default) reads it as hexadecimal only when it consists of hex digits in whole 4-digit units

Return value

This member does not return a value

Usage notes

Related APIs