与 PDFlib API 兼容的 PHP 包装器
是否有任何其他 PHP PDF 生成包的包装器提供与 PDFlib 的 API 兼容性?
我们公司多年来一直使用 PDFlib 从 PHP 生成 PDF,但自版本 5 以来就没有升级过。现在我们正在升级一些服务器,我们需要升级或寻找替代服务器。我想用允许商业用途的开源产品替换 PDFlib。然而,我们(也许是愚蠢的)第一次并没有编写自己的 PDFlib 包装器,并且有很多很多行代码需要更改和测试。
我意识到我可以编写自己的包装器,但令我惊讶的是,迄今为止我的搜索还没有找到其他人做过同样的事情。
Are there any wrappers to any of the other PDF generating packages for PHP that provide API compatibility with PDFlib?
Our company has been generating PDFs from PHP using PDFlib for many years, but have not upgraded since version 5. Now that we are upgrading some servers, we need either upgrade or find a replacement. I'd like to replace PDFlib with an open-source product that allows commercial use. However, we (foolishly, perhaps) didn't write our own wrapper around PDFlib the first time around, and have many, many lines of code that would need to be changed and tested.
I realize I could write my own wrapper, but I find it surprising that my searching thus far has yielded no-one else who has done the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许这个 PHP 类可以帮助你
Maybe this PHP Class can help you out
我个人使用 fpdf - 非常强大,并且有很多用户生成的脚本可以做任何你能想到的事情。
还免费
I personally use fpdf - very powerful and has lots of user generated scripts to do anything you can think of.
Also free
如果有人感兴趣,我开源了我编写的包装器。它非常小——足以满足我们的需求——但它确实有效。请参阅其 Github 页面了解更多信息。
If any one is interested, I did open-source the wrapper I wrote. It's very minimal—just enough for our needs—but it works. See its Github page for more info.