使用动态生成的png图像将jqplot导出为pdf

时间:2013-04-01 10:58:21

标签: php pdf jqplot

我正在使用jqplot在我的应用程序中显示图表。我想以PDF格式导出此图表。为实现这一目标,我计划生成图表的运行时图像。 jqplot中有一个按钮,显示使用javascript从jqplot生成的图像。它使用以下代码。

 btn.bind('click', {chart: $(this)}, function(evt) {
                    var imgelem = evt.data.chart.jqplotToImageElem();
                    var div = $(this).nextAll('div.jqplot-image-container').first();
                    div.children('div.jqplot-image-container-content').empty();
                    div.children('div.jqplot-image-container-content').append(imgelem);
                    div.show(500);
                    div = null;
                });

我想在运行时使用PHP来做,但我不知道如何实现这一点。帮助我。谢谢

0 个答案:

没有答案