Arabic content is displaying with ? in generated pdf.
I have used HTMLtoPDF ootb activity for generating pdf from arabic html stream.
I have passed Param.pyPDFFontsDirectory with custom arabic font directory and param.pyPDFEmbedFont value to true still generated pdf is displaying with ?. Could you please suggest the solution.
Arabic content is displaying with ? in generated pdf
Entire pdf is appearing with corrupted values[i.e. [?]
- Edited
- Best Answerset by administrator
siva
When you import the language packs, Pega automatically does import all the required fonts. We just need to configure our code to use those fonts.
Follow the below steps and let us know if it works,
1) Make sure the Arabic language pack is installed in your instance.
2) Pass the below parameters when you invoke HTMLToPDF activity.
Param.pyPDFFontsDirectory - Your server library fonts directory [In our scenario it is D:\PRPCPersonalEdition\jre1.8.0_121\lib\fonts]
Param.pyPDFEmbedFont - "true"
3) Now run your scenario and you should be seeing the actual content in the generated PDF.
Let us know if this helps or in case if you have any further questions.
Thanks it worked