+ Start a Discussion
harsha B R 9harsha B R 9 

Issue with rendering Chinese characters as PDF

Team,

I am facing an issue with the display of chinese characters on the PDF.Some of the chinese characters are not displaying properly
on usage of the renderAs attribute.

Basically I am getting the data from the rich text area and displaying on VF page using <apex:outputField> tag

Couples of links which I referred to fix the issue:

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000958tIAA
http://salesforce.stackexchange.com/questions/10052/visualforce-rendering-pdf-with-international-characters-and-bold-italic-arial
http://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_renderas_pdf.htm

Issue is not resolved after using UTF-8 encoding and setting the body of the PDF with the font-family: 'Arial Unicode MS'.

Any help would be appreciated.

Thank you.
ShashankShashank (Salesforce Developers) 
Note that the pageBlock and sectionHeader components don't support double-byte fonts when rendered as a PDF. Please see if this is the case.
Praveen Kumar R 6Praveen Kumar R 6
You need to use Arial Unicode Font as it is the only Unicode Font supported for Visualforce PDF Rendering.
"Arial Unicode MS is the only multibyte font available.

For example : 
<div style="font-family: Arial Unicode MS;font-weight: 900; "> <apex:outputText >{!textbody}</apex:outputText> </div>