Dec 26, 2023
0
Level 1
Laravel mpdf background image "sometimes" not showing up
Hey, i'm using laravel mpdf package from;
https://github.com/mccarlosen/laravel-mpdf
I use in blade file something like;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body {
font-family: 'timesnewroman';
}
@page {
background-image: url("https://example.com/background.jpg") no-repeat 0 0;
background-image-resize: 6;
}
</style>
</head>
I'm using this package for create certificates for courses. I had this problem before, when i create 2k certificates around 100 certificates didn't get a background image, so i just moved background image to another website/project and using from another url. The certificate count without background images decreased to around 5-10. When i recreate these certificates, background showing up.
I'm stuck right here, do you guys have any idea?
Regards.
Please or to participate in this conversation.