提高 TCPDF 中的图像分辨率
我正在使用 Symfony1.4 和原则。我正在使用 sFTCPDFPlugin 生成 pdf 文件。我有一个分辨率为 100px × 60px 的图像在浏览器中看起来很好,但是当我生成 pdf 时,我想将其转换为高分辨率图像,因为质量不好。我该怎么做?
I'm using Symfony1.4 with doctrine. I'm generating pdf files using sFTCPDFPlugin. I have a image with resolution 100px × 60px looks fine in browser but when i'm generating a pdf i want to convert this to a high resolution image since the quality is not fine. How can i do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将 $is_pdf 添加到操作中,然后使用 if/else 来决定使用更高/更低分辨率的图像。
just add a $is_pdf to the action and then use a if/else to decide what image to use higher/lower resolution.