1

我们有一个应用程序,其中我们有矢量图像并使用 dompdf 将 html 转换为 pdf。但是 dompdf 不支持矢量图像。

任何人都可以向我推荐任何支持表格、背景图像和矢量图像的基于 php 的 pdf 生成器。

4

3 回答 3

1

TCPDF支持 PDF 中的矢量图像。那是用于 PDF 生成的纯 PHP 库。

在此处查看示例 #32:http: //www.tcpdf.org/examples.php http://www.tcpdf.org/examples/example_032.phps

于 2012-06-11T07:59:17.983 回答
0

Sprint PDF supports vector images. And it does not need any server-side installation—it is a REST API that can be integrated into any application.

于 2012-07-03T16:01:38.520 回答
0

Web 上矢量图形的关键标准是 SVG。

考虑构建一个 SVG 文档,然后使用 RSVG、Inkscape 或 Apache Batik 将其转换为 PDF。

于 2012-06-11T06:16:39.713 回答