Here's the scenario:
I have some text that includes both LTR (English) and RTL (Hebrew).
When the text renders to the PDf, the RTL text is reversed.
Here's an example.
Dim text as String = "Happy New Year -- שנה טובה"
page.Canvas.DrawString(text, font, brush, x, y)
The result in the PDF file is
"Happy New Year -- הבוט הנש"
I did see this article, but the issue I have is that I have one string which has both LTR and RTL that needs to be rendered accordingly.
If I use PdfStringFormat.RightToLeft, I'll get "raeY weN yppaH" -- שנה טובה.
I also don't know in advance what the string will be, so a suggestion that I first parse the string and then use two statements is not practical. There might be multiple instances in the text that are interspersed with Hebrew RTL.