In linux, the key code for pdflib multi-language problems is as follows: PHPcode $ pathgetcwd (). & quot; srcfontsnewfont. TTF & quot; if (! Pai_set_parameter ($ p, & quot; FontOutline & quot;, & quot; myfont $ path & quot;) {PDEBUG in linux pdflib multi-language problem
The key code is as follows:
PHP code
$ Path = getcwd (). "/src/fonts/newfont. TTF"; if (! Pai_set_parameter ($ p, "FontOutline", "myfont = $ path") {PDEBUG ("set parameter fontoutline fail", _ FILE __, _ LINE __);} [color = # FF0000] $ fonthand = pai_load_font ($ this-> pdf, "myfont", "unicode ",""); // This row reports an error [/color] if ($ fonthand = NULL) {PDEBUG ("failed to search for a font and prepare it for later use" ,__ LINE __, __file _);} if (! Pai_setfont ($ p, $ fonthand, $ big) {pdebug ("failed to set font" ,__ line __,__ file _); return false ;}
The error message is:
Unicode and glyph id addressing not supported in PDFlib Lite'
I have been searching for N for a long time. please advise me.
My pdflib version is 7.0.3
------ Solution --------------------
PDF_load_font, which function have you defined?
Is the webpage where the function is called in the webpage header ?!!!
------ Solution --------------------
Pdflib lite does not support unicode
------ Solution --------------------
Learning
Jf
------ Solution --------------------
Discussion
Reference:
Reference:
Pdflib lite does not support unicode
Thank you!
Is there any other way to add fonts under pdflib lite? For example, Vietnamese, thai ......
Try with UTF-8
Looks like only UTF-8 supports Vietnamese