laravel-dompdf icon indicating copy to clipboard operation
laravel-dompdf copied to clipboard

Emoji Support

Open kedarv opened this issue 6 years ago • 27 comments

This is probably UTF related, but does anyone have a fix for getting emoji to be rendered properly?

kedarv avatar Sep 10 '17 21:09 kedarv

Any news regarding this situation?

laurentiusar avatar Feb 07 '18 14:02 laurentiusar

Nope, sorry! I just removed emoji from text as a bandaid solution

kedarv avatar Feb 07 '18 15:02 kedarv

Use a font that contains emoji and it works :) But it will be black and white.

laurentiusar avatar Feb 21 '18 11:02 laurentiusar

@laurentiusar What font did you use? I tried OpenSanEmoji but seems it didn't work.

szhoux avatar Jun 21 '18 15:06 szhoux

no update for this issue ?

ramonivandy avatar May 22 '19 06:05 ramonivandy

i havent try this, but it should work https://groups.google.com/forum/#!topic/dompdf/UE2ISFHYYuE

ramonivandy avatar Jun 25 '19 11:06 ramonivandy

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.

image

ramonivandy avatar Jun 26 '19 11:06 ramonivandy

Related: https://github.com/dompdf/dompdf/issues/1698

simonschaufi avatar Jun 12 '20 12:06 simonschaufi

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.

stale[bot] avatar Aug 11 '20 19:08 stale[bot]

+1

davidcandreva avatar Aug 26 '20 19:08 davidcandreva

+1

cairocampos avatar Oct 20 '20 15:10 cairocampos

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.

stale[bot] avatar Dec 20 '20 12:12 stale[bot]

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!

Jupitercouple29 avatar Feb 20 '21 04:02 Jupitercouple29

I'm working on laravel, I fixed this issue using this library https://github.com/xuejd3/laravel-emoji

Jupitercouple29 avatar Feb 20 '21 18:02 Jupitercouple29

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.

stale[bot] avatar Jun 01 '21 09:06 stale[bot]

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.

stale[bot] avatar Jul 31 '21 22:07 stale[bot]

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.

stale[bot] avatar Oct 02 '21 01:10 stale[bot]

Have there been any updates/ recent workarounds on this issue? It is still relevant.

oneWaveAdrian avatar Oct 21 '21 15:10 oneWaveAdrian

This is a limitation of dompdf, and so can/should not be fixed in this repo. I personally believe this issue should be closed.

JorisDebonnet avatar Nov 11 '21 16:11 JorisDebonnet

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.

Jupitercouple29 avatar Nov 11 '21 17:11 Jupitercouple29

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) ☺️

JorisDebonnet avatar Nov 11 '21 19:11 JorisDebonnet

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.

stale[bot] avatar Apr 16 '22 03:04 stale[bot]

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.

stale[bot] avatar Jul 10 '22 13:07 stale[bot]

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.

stale[bot] avatar Sep 21 '22 03:09 stale[bot]

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.

stale[bot] avatar Jun 18 '23 08:06 stale[bot]

.

DutchPrince avatar Aug 30 '23 10:08 DutchPrince

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.)

JorisDebonnet avatar Aug 30 '23 10:08 JorisDebonnet