Skip to content

PDF can not display Chinese character

Note: PDF export is only available in commercial version

Here's the instruction to add Chinese support to pdf export.

1. Download the following free Chinese font (微軟正黑體). The font file is 20MB.
https://github.com/lenyi/Microsoft/blob/master/libs/msjh.ttf

2. Save it in the following folder:
server/pdftable/font/unifont

3. Open export.php, replace the following
 
    $pdf->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
    $pdf->SetFont('DejaVu','',7);

with     

    $pdf->AddFont('msjh','','msjh.ttf',true);
    $pdf->SetFont('msjh','',7);

Sample result: 

You can use the same method for any other type of foreign languages.

Feedback and Knowledge Base