How to display ###### to Arabic Characters in PDF using Template document

2
How to display ###### to  Arabic Characters in PDF using Template document, When I'm trying to display Arabic text I'm getting this #### and I tried to implement some of the answers from forum but my issue was not resolved Please help me out this  Thanks in Advance https://community.mendix.com/link/space/app-development/questions/129359 i tried this one but i didn't get the Arabic text correct me if i'm wrong anywhere or if i miss anything
asked
2 answers
0

Hi Kakarla,

If you still haven't obtained results after trying the forum link, you might want to consider changing the font family. I can provide you with a sample Arabic font family from Google Fonts that I've successfully used in my sample app. It works better.

 

https://fonts.google.com/specimen/IBM+Plex+Sans+Arabic?query=arabic&noto.query=arabic&noto.lang=ar_Arab&noto.script=Arab

 

Did you changed the xconf file with your relevant fonts?

 

Add this content between <fonts> tag.

 

<font kerning="yes" embed-url="IBMPlexSansArabic-Regular.ttf">

          <font-triplet name="ibmflex" style="normal" weight="normal"/>

        </font>

 

The xconf file was located in the folder for your modeler version. In my case, it was found in this location.

C:\Program Files\Mendix\9.24.10.18073\runtime\lib

 

Screenshot 2023-11-30 180227.png

 

Screenshot 2023-11-30 172726.png

 

Even if it does not work. Check your resources folder whether you have that ttf file was available in this folder. 

 

Copy the xconf file and paste it into your project's resources folder.

 

C:\Users\Mendix\yourprojectname\resources

 

Screenshot 2023-11-30 175923.png

I hope this helps. 

answered
1

Hi Haritha,

 

It is possible by following the documentation:

https://docs.mendix.com/refguide/style/#custom-fonts-for-pdf-documents and https://docs.mendix.com/refguide/style/#custom-fonts

 

It's a bit cumbersome (finding the right font etcetera), but it works. At least for me adding the Slovak Cyrillic characters.

 

Go Make It

answered