Problems related to pdflib in multiple languages in linux-php Tutorial

Source: Internet
Author: User
Tags pdflib
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.