-
Notifications
You must be signed in to change notification settings - Fork 283
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
Images not loading in headers and footers #347
Comments
You mean, during printing to pdf? |
Yes! Sorry, I should have said. |
Hi Enrico, any further thoughts on this? |
I didn't have time to test this yet. It's in my to-do list. |
This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions. |
This is still an issue as far as I know? |
So, there are a lot of sources around saying that both I couldn't find any way to load external images. The only thing that worked was injecting the image as base64 directly in the html: If anyone finds a better solution, feel free to reopen this issue. |
Same issue, any news ? |
Hi,
I can't get images to load in headers and footers - see screenshot.
Here's my code for the header:
My options:
$browser = $browserFactory->createBrowser([ 'windowSize' => [882, 1248], 'ignoreCertificateErrors' => true, 'enableImages' => true, 'userAgent' => 'PlainlyBot', ]);
Is this a bug or something I'm doing wrong? (Once I understood that you need to set some inline CSS in a wrapper div for headers and footers, everything else seems to work well.)
Many thanks
James
The text was updated successfully, but these errors were encountered: