DOMPDF utf-8 support |
[eluser]inari[/eluser]
Hello community. First I must say I like codeigniter very muchos. I'm trying to create pdf documents from html, and I found this article very interesting. My problem is that I need to create utf-8 pdf files. At dompdf homepage I found this: Unicode support when using PDFLib, courtesy Jeremy Buchman (licensed version only--PDFLib Lite will NOT work) I'm using commercial pdflib version with licence number inserted into config file. I don't know what I'm doing wrong but I just can't make it works with utf-8. I used instructions to create amf files from ttf and script worked fine but effective only in copying files, it didn't convert anything. Anyone have some atf file supporting utf, please if you could send it to my mail for testing purposes. Final application will run on linux but I must be sure utf works fine with dompdf. Anyone succeed in that at windows?
[eluser]Derek Allard[/eluser]
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">
[eluser]tobben[/eluser]
It works perfectly fine than? With that commercial licence? See, I would really get my PDFs containing Æ, Ø and Å to work, without words collapsing into each other.. even if I have to pay for it..
[eluser]Derek Allard[/eluser]
Are you saving them into a database first tobben? I could be that your database is changing the charset. Try just straight html first.
[eluser]tobben[/eluser]
Alright, I'll try with no db, even though Im pretty sure it's all UTF-8. Some visual "candy" on the problem: http://home.online.no/~janerboe/collapse.gif
[eluser]inari[/eluser]
It does not work for me. I'm getting ???? for čćđž in html. Document encoding is utf-8 too just like html encoding. Using meta: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
[eluser]Derek Allard[/eluser]
Could you post the minimal view required to recreate this? I'd be happy to test on my setup.
[eluser]inari[/eluser]
It works! But now I have the same problem with letters collapsing into each other.
[eluser]inari[/eluser]
I deinstalled all extensions on server and downloaded new from PDFlib homepage and now everything works great!
[eluser]inari[/eluser]
Did anyone succeed in creating symbols inside pdf with dompdf without utf-8 support? does not works for me. |
Welcome Guest, Not a member yet? Register Sign In |