0

I try to generate a document visualforce page with both english and arabic content. in our browsers, we can see both languages, however the generated PDF only contains the english content, whereas the arabic content is empty.

please any body hlep me

  • Could you edit your question and add some code for us to reproduce? Its best way to get proper support. – Raul Jan 24 '18 at 9:08
0

If the PDF file fails to display all the page’s text, particularly multibyte characters such as Japanese or accented international characters, adjust your CSS to use a font that supports them. For example:

<apex:page showHeader="false" applyBodyTag="false" renderAs="pdf">
<head>
    <style>
        body { font-family: 'Arial Unicode MS'; }
    </style> 
</head>
<body>

これはサンプルページです。<br/>
This is a sample page: API version 28.0

</body>
</apex:page>

“Arial Unicode MS” is the only font supported for extended character sets that include multibyte characters.

Please also refer https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_considerations.htm

Best

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.