Solved

Creating pdf including thai language with dompdf

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

785 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