问题描述
我在php中使用tcpdf生成pdf。
i use tcpdf for pdf generation in php. http://www.tcpdf.org/examples.php
我使用javascript / jquery framwork / plugin来显示一些图表。 (fe )
i use a javascript / jquery framwork / plugin to display some charts. (f.e. http://filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/ )
图表的tcpdf实习方式对我来说是没有机会的。
有一种方法将画布转换为png,如下所述( Capture HTML Canvas as gif / jpg / png / pdf?)不幸的是,在所有测试的插件/框架中只转换所需图表的片段。
the tcpdf intern way for charts is no opportunity for me.there is a method transforming canvas to png like described here ( Capture HTML Canvas as gif/jpg/png/pdf? ) which unfortunately does only convert, in all tested plugins/frameworks, fragments of the needed chart.
tcpdf支持javascript,但是imo只适用于表单交互,如在其中一个示例中看到的。
tcpdf supports javascript but imo only for form interactions, like seen in one of the samples.
这样,即使哪个库(不同于tcpdf)
which way, even which library (different than tcpdf) allows me to include js-charts into a pdf in php without server access?
推荐答案
我的工作 - 使用google图表api。 google帮助您在网页上获得交互式图表,并转换为pdf google创建静态png的整个数据显示。到目前为止,我可以生活得很好。
My work-arround for this goes along by using google charts api. google helps you to get interactive charts on the webpage and for converting to pdf google creates static png's with the whole data displayed. so far i can live with that pretty good.
这篇关于包括jquery图表到pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!