Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.19k stars 680 forks source link

White text with white background? #1465

Closed Derekt2 closed 3 years ago

Derekt2 commented 3 years ago

Run on ubuntu 20.04 using weasy 53.3:

from weasyprint import HTML
HTML('https://www.darkreading.com/attacks-breaches/rapid-ryuk-ransomware-attack-group-christened-as-fin12').write_pdf('test.pdf')

produces a "test.pdf" which is all white. Why is this occurring and is there a fix?

grewn0uille commented 3 years ago

Hello!

This HTML document contains lot of JavaScript (not supported by WeasyPrint) and various CSS files generated by JavaScript. So we can’t really have a look at it and try to debug.

If you want to generate PDF from HTML pages like this one, maybe you can use other tools like wkhtmltopdf.