HRESULT SetTextDirection ( TextDirection textDirection ) |
Use this method when you need to print some right-to-left text in a PDF document.
For example, if you want to place a Hebrew or Arabic (or else right-to-left) text in a PDF, then call:
fnt = PDF.AddFont(fontName, false, false, false, false, codePage); PDF.UseFont(fnt, fontSize); PDF.SetTextDirection(tdRightToLeft); PDF.ShowTextAt 10, 20, "Right to left text is here. And 123 digits.";
And it will draw a string:
.stigid 123 dnA .ereh si txet tfel ot thgiR
(We assume that the string was not in English but in Arabic, Hebrew or other language with right-to-left direction.)