문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top