Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Arabic font to the pdf file iTextSharpgpl

monemdcmonemdc Member ✭✭✭
edited November 2020 in Xamarin.Android

hi
Add Arabic language to pdf file using iTextSharplgpl .

Word print code in PDF file English language appears only and Arabic does not appear Why ?
i add font name DroidNaskh-Bold.ttf in assets folder .
code

Font f = FontFactory.GetFont("Assets/fonts/DroidNaskh-Bold.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
                    Phrase p = new Phrase("This is incorrect: هلا بكما ");
                    p.Add(new Chunk(": 50.00 USD  هلا بكم"));
                    document.Add(p);
Tagged:

Answers

  • Tracy320Tracy320 Member ✭✭✭

    Uploading a basic demo should help us test and solve problems faster. :)

Sign In or Register to comment.