문제

Is there anyway to have an export function to export the Google Visualization organizational chart as an image? I want this as a feature of my website, so people can click a button or a link and have it save as an image or a pdf file

도움이 되었습니까?

해결책

Make a screen-shot of the browser. There are multiples tools out there to do this. We used this: http://code.google.com/p/speak-lib/source/browse/#svn/trunk/WebShot%3Fstate%3Dclosed

It works fine. We generate previews of design changes that way.

다른 팁

Try http://phantomjs.org/ you can write script to cut your web page into PNG images of some fixed size and then assemble them into PDF.

You can export the SVG code and send it to a server to convert it to an image. This is a scalable and easy solution. Answer details here: Convert Google Geochart to image (JPEG, PNG, etc.) or PDF in the browser

Use chart.getImageURI() it gives the image location

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