MatTheCat
MatTheCat

Reputation: 18721

Zend PDF image bad quality

I've tried Zend PDF and it works pretty well but I have a troublesome problem : when I add an image to a page with drawImage() it always appears pixilated regardless position and dimensions. There's many lines I don't understand in the Zend images classes, has someone already encountered this problem? How can I fix this ?

(I cannot post my code today but it's very simple and I think my question is not specific)

Upvotes: 0

Views: 1656

Answers (1)

Marc B
Marc B

Reputation: 360662

Remember that PDF is inherently a print medium (300dpi and higher), while your average .jpg is intended for screen viewing (72-100dpi). If you don't supply source images with approximately the same resolution as the document you're inserting it into, the PDF display engine will have to do all kinds of scaling to make things fit. Once when you insert the image to stretch it out to the size you want, and then downscaling again to make the PDF fit on your screen.

Upvotes: 4

Related Questions