问题描述:

I am using flot to generate graphs in my application. The graphs are rendered correctly. The web page is then converted to a pdf using PDFKit. On conversion, the coordinates[X,Y] of the graph are displayed correctly While the graph itself is not rendered.

Problem seems to be with the canvas tag-

<canvas class="base" width="600" height="300"></canvas>

<canvas class="overlay" width="600" height="300" style="position: absolute; left: 0px; top: 0px;"></canvas>

Any clues on which direction to look to solve the problem will be very helpful.

Cheers!

网友答案:

PDFKit uses wkhtmltopdf to do the actual rendering right? So you might need to dig into PDFKit and make sure it's specifying the right options for wkhtmltopdf, specifically --redirect-delay <time> might be useful.

相关阅读:
Top