1

Need Chinese language support.

I have a project that has been sitting on our servers for almost a year now. 80% of the company can use it except the other 20% is in China and is unable to use this tool. It allows them to customize reports and then create a PDF from their input. Sadly, when any Chinese characters are entered all that comes out in their documents is a bunch of unreadable garble.

Are their plans to implement support for the Chinese characters? Are their other tools out there that can be used that can do Chinese?

I ask for a solution that has worked for you, tried and true. I have seen a lot of "you should probably do xxxx", which means they have not tried it themselves. I feel like I have pretty much 'tried' everything under the sun and I am still not getting the results. PLEASE - can someone shed some light on how to translate inputed Chinese characters to PDF. English is no problem, works great, it is just when Chinese characters are entered and submitted that it fails.

Thanks in advance.

2

Hi,

You can download weberp from this link http://sourceforge.net/projects/web-erp/files/latest/download. The get the javiergb.php from includes/tcpdf/fonts/.

Then you copy the javiergb.php file to html2pdf/_tcpdf5.xxxx/fonts/ directory.

After above step finished, just add one line $html2pdf->setDefaultFont('javiergb'); to your html2pdf set up as following:

$html2pdf = new HTML2PDF('L', 'A4', 'en');
$html2pdf->setDefaultFont('javiergb');
$html2pdf->writeHTML($html);
$html2pdf->Output('first_PDF_file.pdf');

Hope it's helpful.

Best regards!

Exson

3

4

I create a pull request to the https://github.com/spipu/html2pdf,
if you have any question, you can look my fork code at: https://github.com/cychai/html2pdf

the demo file is example/example_zh_cn.php.
web developer