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
rangaranga 

Rendering PDF in another language.

Hi all,

I have tried rendering another language (Sinhalese - Sri lankan) as a pdf using renderAs attribute. But all the charcters in sinhalees were skipped during the process. Wonder anyone could help me in this.

<apex:page renderAs="pdf">
<html>
 <head>
  <style> 
     body {font-family: Arial Unicode MS;}
  </style>
 </head>
  <center>
  <h1>This is a test</h1>
  <h2> ඹඨෂ්‍යඍඵඔෂ </h2>
  <apex:outputText>Hello World!</apex:outputText>
  <br></br>
  <apex:outputText>ඹඨෂ්‍යඍඵඔෂ </apex:outputText>
  </center>
</html>
</apex:page>

 

 

Ispita_NavatarIspita_Navatar

Hi,

I have checked  your code and found that browser does not support your language in PDF format .if you want the output in Sinhalese language then you should not use renderas PDF attribute.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

rangaranga

Thanks for your kind reply Ispita. Yeah, I have tried without renderAs='PDF. It works fine without it. But the problem is I must implement that facility in my application. So I have asked help from salesforce support. I will post if I get any answer from them.

Thanks again.

 

 

vriavmvriavm

Hi,

 

           try language="hi" attrinute along with renderAs="PDF" in the apex:page tag

           You can use different values in the language attrinute like:

                 Hindi - hi

                 Urdu - ur

          Refer http://webdesign.about.com/od/localization/l/bllanguagecodes.htm for different language codes.