laravel-dompdf
laravel-dompdf copied to clipboard
Emoji Support
This is probably UTF related, but does anyone have a fix for getting emoji to be rendered properly?
Any news regarding this situation?
Nope, sorry! I just removed emoji from text as a bandaid solution
Use a font that contains emoji and it works :) But it will be black and white.
@laurentiusar What font did you use? I tried OpenSanEmoji but seems it didn't work.
no update for this issue ?
i havent try this, but it should work https://groups.google.com/forum/#!topic/dompdf/UE2ISFHYYuE
i havent try this, but it should work https://groups.google.com/forum/#!topic/dompdf/UE2ISFHYYuE
already try this and it work font that i use is DejaVu Sans.
Related: https://github.com/dompdf/dompdf/issues/1698
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
+1
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
Any updates on this?
I displayed the emojis and it showed something like this.
{"name":"message","value":"\ud83d\udca9\ud83d\udca9\ud83d\udca9\ud83d\udca9\ud83d\udca9\ud83d\udca9\ud83d\udca9\ud83d\udca9"}
Still waiting for the solution. Thanks!
I'm working on laravel, I fixed this issue using this library https://github.com/xuejd3/laravel-emoji
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
Have there been any updates/ recent workarounds on this issue? It is still relevant.
This is a limitation of dompdf, and so can/should not be fixed in this repo. I personally believe this issue should be closed.
Have you guys tried this? https://github.com/xuejd3/laravel-emoji
I imported it on my composer.json.
"xuejd3/laravel-emoji": "^1.0",
And I displayed it in this way.
<?php echo Emoji::toImage($property['value']) ?>
Here, $property['value'] holds the emoji code. Please try this. I displayed emoji and even succeed to print it on PDF.
Have you guys tried this? https://github.com/xuejd3/laravel-emoji I imported it on my composer.json.
"xuejd3/laravel-emoji": "^1.0",
And I displayed it in this way.
<?php echo Emoji::toImage($property['value']) ?>
I guess that is a viable workaround, but since it uses images, it's not a fix for all situations. So, indeed useful for some applications, but in general, a true fix for this issue can only come from dompdf (or one of its dependencies) ☺️
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
.
Emoji support does not depend on any work in this repository, but on dompdf itself.
Related issues: https://github.com/dompdf/dompdf/issues/1698 https://github.com/dompdf/php-font-lib/issues/113 <== especially track this one
(In other words, it could be fine to close this issue, because it will "automatically" be resolved once dompdf starts supporting it.)