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: no support for right-to-left languages?

hi,

 

we tried to create an arabic PDF and thought we succeded. Unfortunately it turned out, the content was written left-to-right and the PDF generator ignores the right-toleft-commands.

 

any ideas on how to enable right-to-left languages in pdf generation?

 

 

 

Here is an example which demonstrates, that RTL is ignored:

 

 




<apex:page renderAs="PDF">

<head>
<style type="text/css">
body{
font-family:Arial Unicode MS;
font-size: 10pt;
}
</style>
</head>

<body>

LTR:
<p>الإقتص:
<br/>1234
</p>

RTL:
<p dir="ltr">الإقتص
<br/>1234
</p>

RTL (CSS):
<p style="direction:rtl;">الإقتص:
<br/>1234
</p>
</body>

</apex:page>


dchasmandchasman
Right-to-left languages are not currently supported in PDF generation. Please create an idea on IdeaExchange and get the community to vote for it.