PHP 转换器 Html(css) 到 Pdf?

发布于 2024-07-19 07:56:05 字数 336 浏览 4 评论 0原文

重复: 使用 PHP 将 HTML + CSS 转换为 PDF?

我正在寻找基于 php 的 HTML->PDF 转换器库,以便在我的应用程序中生成报告。 到目前为止,我找到了一个,它看起来不错,但有一些限制。 谁能推荐其他高级的吗?

谢谢。

Duplicate: Convert HTML + CSS to PDF with PHP?

I am looking php based library for HTML->PDF convertor, for report generation in my application. By far I found one, and it seems good, but has some limitations.
Can anyone suggest any other advanced ones?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

素手挽清风 2024-07-26 07:56:05

这个之前发布的问题。 但是,您可能还想查看 HTML2PDF 或任何各种 PHP PDF 库可以通过快速谷歌搜索找到。

Your question may be answered by this previously-posted question. However, you may also want to take a look at HTML2PDF, or any of the variety of PHP PDF libraries that can be found with a quick Google search.

权谋诡计 2024-07-26 07:56:05

不久前,我使用 html2psghostscript 将 html 页面转换为 pdf,因为它提供了比所有 html2pdf 库更好的结果。

但随着时间的推移,情况可能发生了变化。 最好是尝试一些库,因为生成的 pdf 的质量还取决于您用作基础的 html 样式。

A while ago I used html2ps and then ghostscript to convert html pages to pdf, because it gave better results, then all html2pdf libraries.

But the may have changed in the time. The best is to try some libraries, because the quality of the generated pdf's also depends on the style of html you are using as base.

下雨或天晴 2024-07-26 07:56:05

如果使用 FPDF ,则有一个脚本可以扩展该类以执行一些基本的 HTML 格式设置(但不是 CSS)。 此处提供:http://www.fpdf.org/en/script/script41.php

If using FPDF there is a script which extends that class to do some basic HTML formatting (not CSS though). Available here: http://www.fpdf.org/en/script/script41.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文