zend framework - How to print Chinese and Korean character in PDF using Zend_Pdf? -


i tried print text in pdf in chinese , korean characters using zend_pdf library, seems not showed on pdf slide.i'm wondering if zend_pdf supports chinese , korean language. searched on google dont find solution on that's why ask question here , need help.

thank you

the following example how use zend_mail in japanese. 1 of cjk (aka cjkv ) languages. if use chinese, may use hz-gb-2312 instead of iso-2022-jp.

you can follow same process zend_pdf pass character print in pdf

function myconvert($string) {     return mb_convert_encoding($string, 'iso-2022-jp', 'utf-8'); }  $mail = new zend_mail('iso-2022-jp'); // in case, can use encoding_7bit // because iso-2022-jp not use msb. $mail->setbodytext(     myconvert('this text of mail.'),     null,     zend_mime::encoding_7bit ); $mail->setheaderencoding(zend_mime::encoding_base64); $mail->setfrom('somebody@example.com', myconvert('some sender')); $mail->addto('somebody_else@example.com', myconvert('some recipient')); $mail->setsubject(myconvert('testsubject')); $mail->send();  

edit

$page->drawtext('janko hraško', 200, 643, 'hz-gb-2312'); 

also refer

http://framework.zend.com/issues/browse/zf-588

http://framework.zend.com/manual/1.12/en/zend.pdf.drawing.html

hope solve problem.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -