Solved

Creating pdf including thai language with dompdf

Posted on 2008-06-17
4
1,962 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Percona Monitoring and Management and Grafana

Proactive monitoring is vital to a highly-available environment. We have a quick start guide on Experts Exchange for Grafana users.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Simple Linear Regression

631 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