-
-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF failed when highchart axis labels are being cutoff #2030
Comments
Hi! Thanks for your bug report. Could you please share your HTML file so that we can reproduce the problem? |
Here is the HTML. This is a separate HTML with the same error as I handled the above issue with a workaround solution. Here is what HTML looks like We are first converting web pages to HTML and then converting HTML to PDF using Weasyprint. Here is the crash log |
Hi @liZe , Any update on this issue? |
No, we would have written a new comment otherwise. |
In the code you uploaded, the issue seems to be (at least partially) caused by one or more <svg width="100px" height="100px">
<text>
<tspan x="10" y="10" visibility="hidden">Text</tspan>
</text>
</svg> |
@alexandergitter Thanks for the simple sample! I think that this issue is now fixed, feedback is welcome. (Our current SVG test coverage is poor, don’t hesitate to add new tests if you’re interested!) |
Hi,
Here is the image of the chart rendered in my HTML. I am using the HighChart.
The issue is when the labels are being cut off, weasyprint is not able to export it to PDF.
Getting the below error.
Workaround for me
I tried adding a margin to the right side of the chart so that the chart does not cut off and the Weasyprint was able to convert it to PDF.
Output PDF:
The text was updated successfully, but these errors were encountered: