Closed germinator1512 closed 2 years ago
Hello @germinator1512, first of all thank you for using this package!
I have added an image to the example html in the repo and I was able to see it printed in the pdf. (see #36) This is with the latest version of the package.
Could you provide some more information?
Hi, I am using version 3.0.0 running on windows 11. When trying to covert the following html to pdf I get the results listed below:
Update: Github wont display the full html and I cant upload an HMTL, so heres the html in a text file input_html.txt
weasy_output.pdf wrapped_output.pdf
Here is another example with a photo:
Hello @germinator1512
Thanks for the detailed description of the problem! At the moment I am unable to locate the exact root cause of the problem, but I can give you my findings for now.
When I install weasyprint 57 directly on my machine and generate a pdf from the provided html the images are gone as well. This leads me to believe this is a problem with the version of weasyprint this package is using (57) and the version WeasyPrint-netcore is using (51) and the css you are using.
When I remove all styling from the html document (everything inside the
When inserting an img, e.g <img src=data:image/jpeg;base64, ...> in the html, it is not rendered in the pdf. Exact same code works with https://github.com/balbarak/WeasyPrint-netcore