PHP数据以图表到pdf [英] PHP data to chart to image to pdf

查看:117
本文介绍了PHP数据以图表到pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从一个数据集生成一个图表,最终将其以pdf格式。我怎么会这样做?

I would like to generate a chart from a dataset and eventually put it in a pdf format. How would I go about doing this? Which packages would you recommend?

推荐答案

解决方案可能需要两个步骤:

A solution might to go in two steps :


  • 先生成图表并将其另存为图片

  • 然后将此图片嵌入PDF文件

关于第一点,有很多问题/答案可能会帮助你;例如:

About the first point, there are many questions/answers that might help you ; for instance :

  • Graphs/Charts in PHP
  • What is the best open source PHP charting solution
  • Free Chart Libraries for PHP
  • References on creating Charts/Graphs in PHP ?

点,我不经常这样做,但我想 <$ c $例如,c> Zend_Pdf 可能会有帮助 - 注意可能还有其他解决方案!

About the second point, I've not done that quite often, but I suppose Zend_Pdf, for instance, could be helpful -- note there are probably other solutions too !

这篇关于PHP数据以图表到pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆