Question

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?

Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top