I have an issue with generating PDF using wkhtmltopdf. It's very similar to the case described here, except first few charts are rendered fine, but after page break, each next is rendered without strokes - no axis, no ticks, no legend borders, etc. Then third page with the rest of the charts is rendered fine.

Also -webkit-border-radius: 1px, described here didn't work:

Does anyone knows how to resolve this?

有帮助吗?

解决方案

After two days I found the problem :

Demo with my case :

HTML :

<div class="graph">
 <div id="chart" style="width: 535px; height:275px;"><!-- chart render here --></div>
</div>

and CSS :

.graph {
    position: relative;
}

Do not put the css position to "relative" and the chart will be correct on your pdf. Check on your code if the parent div is not on "relative".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top