-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue with box shadow #79
Comments
👋 Could you attach a sample pdf please? I want to try to reproduce it by adding a new test. |
if it helps, the docker image is based on |
Hi @mildfuzz, I've looked into the issue, and I suspect the root cause lies deeper within node-canvas and/or cairo, as these libraries provide the HTML canvas element API in Node.js. Several related PDF-to-PNG libraries that rely on the same dependencies produce similar results as this one. I expect node-canvas to release version 3 in the coming months, and I plan to test it when it’s available. Additionally, I want to explore a few other open-source tools for converting PDFs to PNGs that have permissive licenses in the future. Unfortunately, all of this requires more time and effort than I can currently allocate. Given the situation, I won't be able to dedicate further time to investigating this issue in the near future. |
Okay, thanks for investigating though |
Hi there @mildfuzz I recently had to overwrite the canvas version being used by this lib to be the current LTS version (not the release candidate) due to another different dependency specifying an earlier version, which I did via the override property of our root If that's an option maybe give that a go? |
TBH I am reluctant to go adding overrides as the consensus is we can live with it as is for now. Really, so long as the test highlights changes to the copy, we're good. This is a nice to have |
I've just released new version 0.13.0 with all dependencies updated. Maybe it will help? |
Upgrading didn't remove the shadow issue |
My PDF looks like this:
My PNG looks like this:

Using these deps:
The text was updated successfully, but these errors were encountered: