如何使用FPDF在pdf中编写阿拉伯语? (php) [英] how to write arabic in pdf using FPDF ? (php)

查看:81
本文介绍了如何使用FPDF在pdf中编写阿拉伯语? (php)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用fpdf lib来生成英语语言的pdf文件,但是现在我正尝试使用阿拉伯语的语言生成pdf文件,因此如果支持FPDF,是否支持阿拉伯语,那么我们如何使用阿拉伯语生成pdf文件呢?

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?

推荐答案

尝试一下:

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

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

希望它将对您有帮助.

这篇关于如何使用FPDF在pdf中编写阿拉伯语? (php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆