Solved

Creating pdf including thai language with dompdf

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

947 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

17 Experts available now in Live!

Get 1:1 Help Now