Closed umairge66 closed 9 months ago
This is just a Dompdf wrapper! I understand that this package is just a Laravel wrapper for https://github.com/dompdf/dompdf Any issues with PDF rendering, CSS that is not applied correctly, aligning/fonts/characters etc that are not directly related to this package, should be reported there. When having doubts, please try to reproduce the issue with just dompdf. If it's also present there, do not open an issue here please.
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.
I had this issue as well - solved by using the built-in base64_encode function. $image = file_get_contents('path_to_png_image'); $img_data = base64_encode($image);
Then render in html:
<img alt="" src="data:image/png;base64, ' . $img_data . '">
thanks @Mike-Carolan solved my problem
I am using this library there are many issues but the most frustrating issue is the image is not showing in pdf