Participant
December 8, 2023
Question
Missing characters in Arabic PDF creation
- December 8, 2023
- 1 reply
- 227 views
I am facing an issue while creating pdf using cfdocument tag where the content are Arabic characters. When I am printing the Arabic in web page(HTML) everything works fine, but when I put the same characters in pdf few ligature(joint letters) are missed out.
I have added the code below which creates the pdf in the same location where the file is run and display the content on screen. I have underlined the characters on screen display, which are missed out while rendering the texts in pdf. Is this a bug in cfdocument? Any help is much appreciated.
<cfprocessingdirective pageEncoding="utf-8">
<cfdocument name="TT" format="pdf" fontEmbed="Yes" margintop="1.1" marginbottom="0.5" backgroundVisible="Yes" pagetype="a4" orientation="portrait">
اسم المالك<br>
المبلغ المستحق (درهم)<br>
رمز المتعامل<br>
مركز الخدمة<br>
</cfdocument>
<cfset currPath = expandPath("./") />
<cffile action="WRITE" nameconflict="overwrite" file="#currPath#TestArabic.pdf" output="#TT#" >
<font size="16" >اسم ا<u>لم</u>الك</font><br>
<font size="16" >ا<u>لم</u>بلغ ا<u>لم</u>ستحق (درهم)</font><br>
<font size="16" >رمز ا<u>لم</u>تعامل</font><br>
<font size="16" >مركز ا<u>لخ</u>دمة</font><br><br>
**The underlined(ligature) characters are missing in pdf.
