Arabic Text-Area Not Showing Up Correctly

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v12)  /  Arabic Text-Area Not Showing Up Correctly

DynamicPDF CoreSuite for .NET (v12) Forum

When we create a PDF and using a text area and merge Arabic data from our CRM system we don't see exactly the same value.

Original string data from CRM system:
09-1808 ، مبنى رقم7277، طابق رقم 18 برج الفيصلية، طريق الملك فهد السريع صندوق بريد 54995, الرياض,  11524

The value we see in the PDF after we build a text-area is the following.

‏8081-90 ، مبنى رقم7727، طابق رقم 81 برج الفيصلية، طريق الملك فهد السريع صندوق بريد 59945‏

We see that the numbers are a flipped and the order of text is different. We ran some test with Kerning off and on.

Can anyone help me point out what could be causing this?

Sample code:
private void InsertTestPage()
        {
            //RUN THIS TEST
            Document testDoc = new Document();
            Page testPage = new Page(PageSize.Letter, PageOrientation.Portrait);
            string arabicTest = "09-1808 ، مبنى رقم7277، طابق رقم 18 برج الفيصلية، طريق الملك فهد السريع صندوق بريد 54995";
            string arabicTest2 = "20717064 ؄؈أؤ ڲڈډۋ ڬۂ ڣڍڪٸ ڷڟہڀ";
            Font arial = new OpenTypeFont("D:\\Tempy\\arial.ttf");
            var arialKerningTest = arial.HasKerning();
            TextArea arialWithKerning = new TextArea(arabicTest, 0, 0, 2000, 2000, arial)
            {
                RightToLeft = true,
                KerningEnabled = true
            };
            testPage.Elements.Add(arialWithKerning);
            TextArea arialWithoutKerning = new TextArea(arabicTest, 0, 20, 2000, 2000, arial)
            {
                RightToLeft = true
            };
            testPage.Elements.Add(arialWithoutKerning);
            TextArea arialWithKerning1 = new TextArea(arabicTest2, 0, 200, 2000, 2000, arial)
            {
                RightToLeft = true,
                KerningEnabled = true
            };
            testPage.Elements.Add(arialWithKerning1);
            TextArea arialWithoutKerning1 = new TextArea(arabicTest2, 0, 220, 2000, 2000, arial)
            {
                RightToLeft = true
            };
            testPage.Elements.Add(arialWithoutKerning1);
           

            testDoc.Pages.Add(testPage);
            testDoc.Draw("D:\\Temp\\righttolefttest.pdf");
        }
Posted by a ceTe Software moderator - Commonly asked question
Hi,

Please try setting TextAlign property of TextArea to Right and see if it helps.

Here is a code sample.

            textAreaObj.RightToLeft = true;
            textAreaObj.Align = TextAlign.Right;

Thanks,
ceTe Software Support Team
Turned out to be a bug and addressed in version 12.22.0


Learning Tactical Approaches for Novice Players

Chessboard might be an interesting pastime what offers endless chances towards planning & ability improvement. For newcomers, comprehending fundamentals is the initial stage—studying how each unit functions & acquainting someone with the playing field. Frequent exercise could be important; playing often, whether at regional clubs or virtually, helps someone understand different tactics and boost your abilities. Watching matches by chess experts could give beneficial insights into complex tactics also judgment processes. Anticipating one’s opponent's strategies also contemplating many moves ahead could be essential for chessboard. Keeping relaxed amid stress, particularly in tournament competitions, could be important. Game of chess should constantly become fun, having every competition serving an study opportunity. Engaging in the game of chess group, even through forums, associations, & functions, could improve one’s experience, offering different insights & relationships. Chessboard could be an ongoing path of education also improvement. Therefore, dive into the play, continue competing, continue learning, & above all, delight.
 3_ce5eb
The Optimist Section. The Drama Section. The Long Read. The Working Class. Find your dog at snarkpaws.com.
####### OPVA ########
ULTIMATE РТНС COLLECTION
NO PAY, PREMIUM or PAYLINK
DOWNLOAD ALL СР FOR FREE
 
Description:-> lmy.de/bmRZI
 
Webcams РТНС since 1999 FULL
STICKAM, Skype, video_mail_ru
Omegle, Vichatter, Interia_pl
BlogTV, Online_ru, murclub_ru
 
Complete series LS, BD, YWM
Sibirian Mouse, St. Peterburg
Moscow, Liluplanet, Kids Box
Fattman, Falkovideo, Bibigon
Paradise Birds, GoldbergVideo
Fantasia Models, Cat Goddess
Valya and Irisa, Tropical Cuties
Deadpixel, PZ-magazine, BabyJ
Home Made Model (HMM)
 
Gay рthс collection: Luto
Blue Orchid, PJK, KDV, RBV
 
Nudism: Naturism in Russia
Helios Natura, Holy Nature
Naturist Freedom, Eurovid
 
ALL studio collection: from
Acrobatic Nymрhеts to Your
Lоlitаs (more 100 studios)
 
Collection european, asian,
latin and ebony girls (all
the Internet video) > 4Tb
 
Rurikon Lоli library 171.4Gb
manga, game, anime, 3D
 
This and much more here:
or -->  tiny.cc/6v6x001
or -->  citly.me/sVJSf
or -->  4ty.me/08yxs4
or -->  tt.vg/fiJTt
or -->  tiny.cc/ik3v001
or -->  mub.me/qPg
or -->  cutt.us/3zwna
or -->  put2.me/pwdcjb
or -->  cutt.us/t8v1J
-----------------
-----------------
000A000654

All times are US Eastern Standard time. The time now is 2:23 AM.