Dinamiko / dk-pdf

WordPress to PDF made easy
https://wordpress.org/plugins/dk-pdf
29 stars 23 forks source link

Charts not Showing in PDF #78

Open SolutionsDEV opened 5 years ago

SolutionsDEV commented 5 years ago

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 commented 5 years ago

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,

phalancs commented 5 years ago

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

SolutionsDEV commented 5 years ago

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