将FLOT数据作为图像写入PDF [英] FLOT data as image to write to PDF
问题描述
我正在使用jQuery/FLOT绘制图形,我希望用户能够下载图形的PDF版本.我正在使用ColdFusion编写PDF.创建图后,我通过ajax将图div的html发送到使用cfdocument编写pdf的CF脚本.问题在于,在PDF中,它仅显示轴和标签,而不显示实际的图形数据.有人知道获取在画布上动态创建的实际图像的方法吗?
I am using jQuery/FLOT to draw a graph, I would like for the user to be able to download a PDF version of the graph. I am writing the PDF using ColdFusion. After creating the graph I then send the html of the graph div, via ajax to a CF script that uses cfdocument to write the pdf. The problem is that in the PDF, it only displays the axis and labels, not the actual graph data. Does anybody know of a way to get the actual image that is dynamically created on the canvas?
推荐答案
I don't think this has been implemented in flot yet see http://code.google.com/p/flot/issues/detail?id=175
这篇关于将FLOT数据作为图像写入PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!