Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I think you should use <cfhtmltopdf> instead of <cffile>. That is, something like
<cfhtmltopdf destination="#currPath#TestArabic.pdf" overwrite="yes" >
<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>
</cfhtmltopdf>