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 Ranga,

We replicated your code at our end and found that Sinhalese is not supported by the browser inPDF format. If you want to print the text in Sinhalese language text then the VF page should not use the 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.