有没有办法使用 FPDF 输出 .eps 或矢量文件?

发布于 2024-08-06 11:57:41 字数 397 浏览 2 评论 0 原文

我正在尝试使用用户填写的表单字段,使用 FPDF 类 在 PDF 上布局名片出去。我已经能够创建卡片所需的文本,但我也想输出一个徽标。

我面临的问题是我只能找到一种方法将图像添加为 JPEG,并且当用户放大 PDF 时它看起来像素化。 有没有办法在 PDF 上输出矢量文件,以便用户缩放时仍能保持清晰的质量?

以下是 FPDF 允许的方法:http://fpdf.org/en/doc/index.php

I'm trying to layout a business card on a PDF with the FPDF class using a form field that the user fills out. I have been able to create the text needed for the card, but I have a logo that I want to output as well.

The problem I am facing is that I can only find a way to add an Image as a JPEG and it looks pixelated when the user zooms in on the PDF. Is there a way to output a vector file on the PDF so when the user zooms, it retains the crisp quality?

Here are the methods that FPDF allows: http://fpdf.org/en/doc/index.php

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

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

发布评论

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

评论(1

深者入戏 2024-08-13 11:57:41

http://fpdf.org/en/doc/image.htm

所以 GIF,支持 JPEG、PNG。使用纯 FPDF 库,您应该将图像转换为有效类型。

然而扩展是存在的;)
http://staff.dasdeck.de/valentin/fpdf/fpdf_eps/

/ / 罗兰

http://fpdf.org/en/doc/image.htm

So GIF, JPEG, PNG are supported. Using pure the FPDF library you should convert the images to a valid type.

However extensions are there ;)
http://staff.dasdeck.de/valentin/fpdf/fpdf_eps/

// Roland

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