DOMPDF utf-8 support |
[eluser]tobben[/eluser]
Good news on the DomPDF/UTF-8 issue: http://sourceforge.net/forum/message.php?msg_id=4754104
[eluser]mironcho[/eluser]
Have you tried TCPDF? It support utf8, some html, it's based on fpdf, though. Looks like it's regularly updated and has a bunch of nice examples with header/footer, html, js+forms. etc. TCPDF TCPDF Examples
[eluser]inari[/eluser]
Yes, but it does not support html as good as DOMPDF does. It's to slow and only in theory it has HTML support. DOMPDF really uses DOM and works fast and well. I tried them all -UFPDF, FPDF, TCPDF, CPDF, PDFlib.. they all works somehow, but in action they make more problems then solutions.
[eluser]mironcho[/eluser]
Well, if you are in hurry, you could use it as a workaround while waiting for next dompdf version. It looks like the author's been working on utf support since 2006: http://sourceforge.net/forum/message.php?msg_id=3810495
[eluser]inari[/eluser]
I know about PDFLib but in hosted version it cost USD 1.000 and I can't install it on hosted server. This fix above for DOMPDF is just embeded TCPDF, so it realy sucks. Thanks for help. I'll just have to accept the fact that there is no way to create large pdf documents with php. I need really fast app that can create pdf files on the fly, large documents with 1-50 pages. I think I will look for some Java apps and connect it with php.
[eluser]hugle[/eluser]
[quote author="Derek Allard" date="1200945512"]I had some trouble with this with Bamboo. Essentially, I needed to make sure there was an explicit meta tag stating that the content in my view (the one I was using for domPDF as utf-8. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Hello Derek. I have downloaded bamboInvoice - it is really nice I must say. PDF generation also works fine.. But when I tried using characters like: įšųū - i go ???? instead of them in the generated PDF. But when I take a look into online (HTML) invoice - it was OK. Any thought on this ? Thank you!
[eluser]Derek Allard[/eluser]
That's a limitation in DOMPDF. I'm not aware of a way around it, but I'd welcome any insight anyone had.
[eluser]Mitja B.[/eluser]
i have utf-8 problemms to. I can not write č and ć. I also try Quote:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> but č and ć still not working. Any idea how to fix this? File is utf-8 and controll is in utf-8 Thx
[eluser]Unknown[/eluser]
Hey there guys, I also tend to put everything including my MySQl connection to utf-8. Stupid enough the creators of DomPDF didnt make their application grow up learning to understand this. So: don't feed it utf-8 but call the php function utf8_decode on your input and your problems are solved. Quote: This function decodes data , assumed to be UTF-8 encoded, to ISO-8859-1. utf8_decode($objUser->UserCv); for example. Good luck! |
Welcome Guest, Not a member yet? Register Sign In |