-
Notifications
You must be signed in to change notification settings - Fork 98
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
Background image does not work. #125
Comments
Have you tried telling the browser to force printing the background? ie -webkit-print-color-adjust
|
Oops.. i see you've set your media emulation to |
I tried some suggestions, nothing works. Removing the emulate media option, adding media print style ... |
Have you tried enabling the Have you tried any debugging? https://github.com/Studiosity/grover#debugging |
I configured raise_on_request_failure but it didn't work. When I activate debug mode, it opens and closes the chromium immediately. |
Can you confirm the puppeteer/grover versions installed? |
puppeteer: 10.2.0 |
Ok that likely explains it. There is an issue introduced in puppeteer 10.2.0 that broke asset rendering in grover. You can either downgrade puppeteer to 10.1.0 or upgrade grover to 1.0.3 See #122 |
These are the versions I am using now: peppeteer: 10.4.0 Can confirm the issue still exists |
Can you elaborate @emilianodellacasa ? How are you testing this? I just ran the test as described by @gilderlan above and it works just fine 😉 |
I need to generate a simple pdf with a background image and get the base64 code.
My code:
The resulting pdf does not have a background image.
The text was updated successfully, but these errors were encountered: