Re: PDF Printing

450 views
Skip to first unread message

rio

unread,
Jun 25, 2012, 11:40:35 PM6/25/12
to google-visua...@googlegroups.com
well heres the starting point getting the SVG to an image.

https://gist.github.com/1333906


Your gonna love the next part.(in theory i have not done such) You need to send the Base64 Image server side using Ajax. Decode the Base64 Image server-side. Pop it into a PDF. And sent it back to the client.

If your clever you might be able to utilize an online PDF printing service but your charts needs to contain the right data as seen by the client, assuming the charts are dynamic, lol you probably need Ajax for this as well.

Alternatively you can use Google Image Charts (which is depreciated its a simply URL so its much easier to manage, be sure to add a &.PNG to the URL.
Reply all
Reply to author
Forward
0 new messages