dk-pdf icon indicating copy to clipboard operation
dk-pdf copied to clipboard

Charts not Showing in PDF

Open SolutionsDEV opened this issue 7 years ago • 3 comments

Hi,

This is a wonderful plugin which I really like, but I have a problem with it.

I am using Modal Survey, once the survey finished, there is a chart that is dynamically created and shows through a shortcode. The chart is showing fine on the page, but on the generated PDF it does not show.

Is this a bug? Is there any fix? Or anyway to overcome this?

Thanks a lot,

SolutionsDEV avatar Dec 23 '18 17:12 SolutionsDEV

It turns that the chart is not showing because it is an HTML5 chart; is there anyway to view it in the PDF?

Anyone could help?

Thanks,

SolutionsDEV avatar Dec 26 '18 11:12 SolutionsDEV

HTML 5 uses canvas. That cannot be ported into a pdf easily. Use image charts like quickchart.io or sth. like this.

phalancs avatar Apr 25 '19 09:04 phalancs

Thanks @phalancs for the suggestion. Unfortunately this does not work within Modal Survey as it creates it's own charts.

SolutionsDEV avatar Apr 25 '19 19:04 SolutionsDEV