function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
etoeto 

pdf generation with arabic content --> no output rendered

hi,

 

we have an arabic client and try to generate a document with both english and arabic content. in our browsers, we can see both languages, however the generated PDF only contains the english content, whereas the arabic content is empty.

 

this happens in both cases, when using arabic text directly (copy paste from a text editor) or when converting the arabic text first to html entities.

 

 

 

is arabic not supported or do we have to instruct the renderer in some special way to support arabic?


 






<apex:page renderAs="PDF">

<head>
<style type="text/css">
@page {
size: 21.0cm 29.7cm;
margin-top: 2.0cm;
margin-left: 0cm;
margin-right: 1.5cm;
margin-bottom: 2cm;
}
</style>
</head>

<body>

Copy paste:<br/>
غير ذلك(الرجاء التوضيح)

<br/><br/>
HTML Entities:<br/>
&#1594;&#1610;&#1585;&#1584;&#1604;&#1603;

</body>
</apex:page>



 

Best Answer chosen by Admin (Salesforce Developers) 
etoeto

got it...

 

body{
font-family:Arial Unicode MS;
}

 

 

All Answers

etoeto

got it...

 

body{
font-family:Arial Unicode MS;
}

 

 

This was selected as the best answer
amr_i_mamr_i_m

Good day Eto,

 

I am facing a problem in generating arabic pdf. I got the letters inverted that is to say

أهلا

Appears as

ا ل ه أ

 

Can you tell me the procedure you used to generate the arabic pdf.

 

Thanks,

Amr

etoeto

We recognized later that the PDF renderer does not support right to left languages. I'm not sure if something has changed since then, but I assume it still does not work.

 

We then just rendered HTML and let th customer pint the HTML instead of a PDF document.

Jaffer Ali.Jaffer Ali.
Please vote this idea to enable arabic in visualforce pdf generation.
https://success.salesforce.com/ideaView?id=08730000000beQ4AAI&sort=2