Solved

Creating pdf including thai language with dompdf

Posted on 2008-06-17
4
1,841 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now