Closed estan closed 5 years ago
This may be more of a Weasyprint/CSS issue, but:
Note how the images in the HTML (left) are not scaled up to fit the page width, but in the PDF (right) they are.
It seems the behavior in the HTML is: Scale down pictures if they are too large for the page width (but never scale up).
While the behavior in the PDF output is: Always scale the picture to fit the page width.
Is it possible to get the PDF to have the same behavior as in the HTML?
Nevermind, I figured out it was not a matter of difference in behavior, img { image-resolution: 300dpi; } fixed the issue:
img { image-resolution: 300dpi; }
This may be more of a Weasyprint/CSS issue, but:
Note how the images in the HTML (left) are not scaled up to fit the page width, but in the PDF (right) they are.
It seems the behavior in the HTML is: Scale down pictures if they are too large for the page width (but never scale up).
While the behavior in the PDF output is: Always scale the picture to fit the page width.
Is it possible to get the PDF to have the same behavior as in the HTML?