简体   繁体   English

使用Zend_Pdf创建表的最简单方法

[英]Easiest way to create a table with Zend_Pdf

What's the easyiest way to create a table with Zend_Pdf? 使用Zend_Pdf创建表的最简单方法是什么?

Until now, i realized tables with horizontal and vertical lines. 到现在为止,我实现了水平和垂直线条的表格。 Is there no other solution for tables? 表没有其他解决方案吗?

Thank you. 谢谢。

There's this project in SF: http://zendpdftable.sourceforge.net/ SF中有这个项目:http: //zendpdftable.sourceforge.net/

However it's still not very practical, compared to other libraries. 然而,与其他图书馆相比,它仍然不太实用。

我还发现了一个可以帮助某人的Zend_Pdf_Helper gitHub项目。

From what i have read there is no easy way to do this. 从我所读到的,没有简单的方法来做到这一点。 The closest you will get is by using the shape drawing primitives in the Zend_Pdf API or (probably better) by switching to another PDF library entirely. 您将获得的最接近的是使用Zend_Pdf API中的形状绘制基元 ,或者(可能更好)通过完全切换到另一个PDF库。

XSL:FO combined with FOP handles tables very nicely. XSL:FO结合FOP处理表非常好。 The downside is that it is an external too, seems to be slightly dated, and documentation for it is not the greatest. 缺点是它也是外部的,似乎有点过时,而且它的文档并不是最好的。 This posting of mine might help: http://grover.open2space.com/content/creating-pdf-code-fop 我的帖子可能有所帮助: http//grover.open2space.com/content/creating-pdf-code-fop

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM