how to write arabic in pdf using FPDF ? (php) [duplicate]

筅森魡賤 提交于 2019-12-24 10:45:24

问题


im using using fpdf lib to generate pdf file in englisg language but now im trying generate pdf file in Arabic language so problem is FPDF is supported Arabic or not if suupported then how we generate pdf file in arabic?


回答1:


Try this:

$strp_txt = stripslashes("Write your content here");
$strp_txt = iconv('UTF-8', 'windows-1252', $strp_txt);

$pdf->Write (6, $strp_txt);

Hope it will help you..



来源:https://stackoverflow.com/questions/17162814/how-to-write-arabic-in-pdf-using-fpdf-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!