Question

im trying to export a Google chart to a PDF using a template but it does not accept javascript code. Any idea?

Était-ce utile?

La solution

You have to get the chart as an image and then you can inline it in the PDF for the grails rendering plugin. I haven't got an example to hand, but basically it's :

Grails rendering plugin does not render images when deployed

If you are using Google's "image charting" API then it's quite easy. Less so with the newer javascript/svg ones.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top