-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image not found or type unknown #1059
Comments
If you are using images from local drive, you need to tell DomPDF to allow that filepath. ex: if your images are in your storage/app/compressed folder : And in your view, you have to put the full file path again
|
@ZARk-be hi, be carefull, // with setOption
Pdf::setOption('chroot', [Storage::drive('public')->path('compressed')])->loadView(.....)
// or setting bool $mergeWithDefaults arg on setOptions
Pdf::setOptions(['chroot' => [Storage::drive('public')->path('compressed')]], true)->loadView(.....) Lines 152 to 156 in d7ccbc3
Lines 163 to 171 in d7ccbc3
|
Embedd images like this |
I am using Laravel 11. On my generated pdf, the image is not being loaded.
The text was updated successfully, but these errors were encountered: