我正在尝试使用用户填写的表单字段,使用 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
发布评论
评论(1)
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