Kozea / WeasyPrint

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

How to make WeasyPrint & Firefox rendering more similar #1812

Closed macdeport closed 1 year ago

macdeport commented 1 year ago

When the attached HTML file is opened using Firefox, an image appears at the top and the links are blue.

However, this is not the case with the PDF file produced by WeasyPrint...

How can I make the PDF file look like the Firefox rendering? ni-subventions-ni-deductibilite.html.zip ni-subventions-ni-deductibilite.pdf.zip

liZe commented 1 year ago

Hi.

Try to activate the print mode in Firefox, you’ll get the image removed and the black links just as in WeasyPrint. It means that your CSS includes explicit rules to apply these changes for print.