+ Start a Discussion

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">
     body {font-family: Arial Unicode MS;}
  <h1>This is a test</h1>
  <h2> ඹඨෂ්‍යඍඵඔෂ </h2>
  <apex:outputText>Hello World!</apex:outputText>
  <apex:outputText>ඹඨෂ්‍යඍඵඔෂ </apex:outputText>





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. 


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.






           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.