fraserxu / electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
MIT License
1.24k stars 136 forks source link

Transparent backgrounds are being rendered as white #297

Open agustinprod opened 3 years ago

agustinprod commented 3 years ago

Since 15.0, the png / pdf backgrounds are always rendered as background instead of transparent

codecounselor commented 3 years ago

That's interesting, what version were you on before? I can't think of any code changes that would have impacted that, it must be something within Electron/Chromium itself.

agustinprod commented 3 years ago

We had to rollback to 10.0.2. Yes, it seems something electron side, maybe they changed some param for pdf printing, or it's just broken, but i'm not sure how to debug it, i tried using 16 / 17 nightlies without success.

codecounselor commented 3 years ago

If you load this and do a search for transparen you might find some interesting things. https://github.com/electron/electron/compare/v10.1.3...v15.1.1

Which platform(s) are you running on? Looks like there are some Mac specific behaviors that were added.

agustinprod commented 3 years ago

If you load this and do a search for transparen you might find some interesting things. electron/electron@v10.1.3...v15.1.1

Which platform(s) are you running on? Looks like there are some Mac specific behaviors that were added.

Linux on a docker container