Solved

Creating pdf including thai language with dompdf

Posted on 2008-06-17
4
1,918 Views
Last Modified: 2008-07-02
Hi guys,

I am currently working on producing reports dynamically generated. I found very useful to use html cause it enables to design my reports or to ask someone to design it in commonly used language.

We have developed with dompdf and it is working pretty wellfor english and european languages. We are now moving to Asian languages and the pdf rendering retunrs us ???? when usingthai or Chinese text.

I know tis was already debated but the answer was to use an other pdf tool  than dompdf where I can not change it.

Does anyone knows how to use asian language with dompdf? that would really really help me.

Thx
0
Comment
Question by:flashdelux
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 21801433
Unicode support would be required to render thai / chinese?

On dompdf site I read:
[2006-04-06] dompdf-0.5 has been released! Version 0.5 includes several major improvements and bug fixes. Highlights include:

    * Unicode support when using PDFLib, courtesy Jeremy Buchman (licensed version only--PDFLib Lite will NOT work)

0
 

Author Comment

by:flashdelux
ID: 21801496
Hi Roonaan, and thx

Yes I guess unicode is requiered to render asian language, our database is actually encoded in utf8 to be able to store those character.  ( I guess it is the same)
When displayed on the web paged everything is perfect but then when processing by dompdf they are replaced by ???

Is that a problem of font?

Would simply adding the font solve the problem?

I really do not know anything about font and Asian language and pdf... ;-(
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 21801529
> I really do not know anything about font and Asian language and pdf... ;-(

Me neither... :-)

Maybe on of the threads @ sourcdeforge might help:
http://sourceforge.net/search/?forum_id=440392&type_of_search=forums&group_id=129679&words=unicode
0
 

Accepted Solution

by:
flashdelux earned 0 total points
ID: 21854624
So I moved to html2pdf cause we met to many difficulties using dompdf, this new script is much better. Nothing to compare and we were able to keep all our previous html document , we just had to change a little the size and position of the pictures , the rest worked great.


thanks everyone for your help but I think that mission was impossible
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to count occurrences of each item in an array.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question