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

pdf generation with arabic content --> no output rendered



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">

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


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

HTML Entities:<br/>



Best Answer chosen by Admin (Salesforce Developers) 

got it...


font-family:Arial Unicode MS;



All Answers


got it...


font-family:Arial Unicode MS;



This was selected as the best answer

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.





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.