Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since a default encoding for Drupal generated pages is UTF-8, I believe it would be good that such pages could be properly handled by this module. Now, my generated PDF doesn't contain accented letters - at least not as they should be. As much as I've found on Internet, there are some plugins needed, as dompdf itself can not handle utf-8, but I don't know how exactly to include such a plugin to do the job.
Comment | File | Size | Author |
---|---|---|---|
#5 | 257896-utf8_fix.patch | 1.3 KB | sammys |
Comments
Comment #1
jcnventura CreditAttribution: jcnventura commentedCan you tell what did you find on the internet?
João
Comment #2
thehong CreditAttribution: thehong commentedSubcribe
Comment #3
LUTi CreditAttribution: LUTi commentedHi,
I've googled for "dompdf" and "utf-8", and found the following: http://trac.symfony-project.com/wiki/sfDomPDFPlugin.
But, I have no idea how to go on with it... :-(
Comment #4
jcnventura CreditAttribution: jcnventura commentedWell,
The tool you found is a wrapper of dompdf for the symphony project. Much like the print_pdf module is able to do for anyone advanced enough. There is a Drupal 5.x module (called dompdf :) that does exactly what the tool you found does..
The pages that might help you are:
http://codeigniter.com/forums/viewthread/69388/
http://sourceforge.net/forum/message.php?msg_id=4122270
According to the last one, we only have to wait for dompdf 0.5.2 to come out... I am changing the status to closed, since the solution must come from dompdf or the use of a pdflib commercial license..
João
Comment #5
sammys CreditAttribution: sammys commentedHi there,
I've done some work on getting UTF-8 support working with the print module. So far it's not commit worthy but I figured I'd reopen this issue and update the community with the latest developments from dompdf and my laptop. This took me some time to go through and I'm hoping this post will save people some time.
Dompdf 0.6.0 beta 1 introduced UTF-8 support and it's working! Unfortunately, it's not working out of the box so some fiddling is needed. Here are the things you need to do:
I only added one font to the cache and it's working nicely. You can easily figure out how to amend the cache file using a text editor so I'm not going to explain that. :)
Here is the patch. Enjoy!
Comment #6
jcnventura CreditAttribution: jcnventura commentedHi,
I've just added some support for the Unicode mode to the CVS repository. I'm leaving the ISO-8859-1 replacement in place until dompdf ships with Unicode fonts, as that step is still slightly confusing.
João
Comment #8
nguyentran CreditAttribution: nguyentran commentedIs it a easy way to make UTF-8 work on DOMPDF, do we make it complex to use