开发者

TCPDF scaling and quality issue

开发者 https://www.devze.com 2023-02-14 09:20 出处:网络
I am ge开发者_Python百科nerating PDF from image stream but there is always a little difference in the size of actual image and the image scales down as well .

I am ge开发者_Python百科nerating PDF from image stream but there is always a little difference in the size of actual image and the image scales down as well .

I am using TCPDF class for it

Please help....


Set up your image document at a resolution of 72dpi and the document size of A4 (or whatever size you set in tcpdf).

Then when you call $tcpdf->image('/path/to/image.ext') the image should be the correct size.

Think in points - pixels aren't much use in a tcpdf-generated pdf space.

0

精彩评论

暂无评论...
验证码 换一张
取 消