THPDFPage.ShowUnicodeText Method

Shows a run of Unicode text, or of hexadecimal character codes, at the current text position within a BeginText / EndText block, with optional right-to-left processing. Use it when you build the text object yourself; TextOut covers the ordinary 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 four-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 four-digit hexadecimal units; stfAuto (the default) reads it as hexadecimal only when it consists of hex digits in whole four-digit units

Return value

This member returns no value

Usage notes

Related APIs