我不知道是否有一些帮助程序可以根据查询自动生成文档,但是在网站中,您有一些脚本展示了如何将其与 MySql 一起使用。
华泰
I once did a PHP project generating PDF. I used FPdf.
I never had any memory problems. It's free, it's pure PHP code. You don't have to load any extensions.
I don't know if there's some helpers to auto-generate document from a query, but in the website, you have some scripts that shows how to use it with MySql.
I'm amazed nobody uses FOP:) http://xmlgraphics.apache.org/fop/ ... you basically feed it an XML flie and it generates a PDF file... very quick, and dosent kill your server.
There is a PDF extension for PHP but it's not great - however the Zend framework does have a class that makes good use of it - I reccommend trying that. I haven't heard of DOMPDF before.
I use EZPDF pretty much weekly. It's very easy to use, has great helper functions, but still lets you get in & do the nitty gritty detail work when you have to.
发布评论
评论(6)
我曾经做过一个生成PDF的PHP项目。 我使用了 FPdf。
我从来没有出现过任何记忆问题。 它是免费的,是纯 PHP 代码。 您不必加载任何扩展。
我不知道是否有一些帮助程序可以根据查询自动生成文档,但是在网站中,您有一些脚本展示了如何将其与 MySql 一起使用。
华泰
I once did a PHP project generating PDF. I used FPdf.
I never had any memory problems. It's free, it's pure PHP code. You don't have to load any extensions.
I don't know if there's some helpers to auto-generate document from a query, but in the website, you have some scripts that shows how to use it with MySql.
HTH
我很惊讶没有人使用 FOP:) http://xmlgraphics.apache.org/fop/ ...您基本上向它提供一个 XML 文件,它会生成一个 PDF 文件...非常快,并且不会杀死您的服务器。
I'm amazed nobody uses FOP:) http://xmlgraphics.apache.org/fop/ ... you basically feed it an XML flie and it generates a PDF file... very quick, and dosent kill your server.
填写一个 Latex 模板并通过它调用 Xetex。
我想您会在 Letterly 上找到令人满意的结果。
Fll out a latex template and call Xetex over it.
I think you'll find the results pleasing at Letterly.
PHP 有一个 PDF 扩展,但它不是很好 - 但是Zend 框架确实有一个可以很好地利用它的类 - 我建议尝试一下。 我以前没听说过 DOMPDF。
There is a PDF extension for PHP but it's not great - however the Zend framework does have a class that makes good use of it - I reccommend trying that. I haven't heard of DOMPDF before.
我几乎每周都会使用 EZPDF。 它非常易于使用,具有出色的辅助功能,但仍然可以让您轻松进入并使用它。 必要时做一些细节工作。
I use EZPDF pretty much weekly. It's very easy to use, has great helper functions, but still lets you get in & do the nitty gritty detail work when you have to.
PrinceXML 是一个不错的选择。 它可能会花费一点,但非常强大且易于使用。
PrinceXML is a good alternative. It can cost a bit, but very powerful and easy to use.