High resolution images in pdf file

215 views
Skip to first unread message

vsecades

unread,
Dec 4, 2009, 12:17:14 PM12/4/09
to dompdf
Hi guys,

When adding a high res. image, say 300dpi to a pdf, the only thing I
note is like a 1kb difference in a pdf. The DOMPDF_DPI setting
affects images and what else internally?

Thanks for the help.

Cheers,
Valentin

psychoactive

unread,
Dec 4, 2009, 2:14:53 PM12/4/09
to dompdf
does the image look bad? isn't it good if it doesn't make the pdf a
lot bigge?

BrianS

unread,
Dec 4, 2009, 8:51:27 PM12/4/09
to dompdf
Images are probably the most relevant thing affected by DOMPDF_DPI.
But really, you won't notice much of a difference in file size due to
this setting. The easiest way to think about this setting is that it
affects the calculation of the dimensions of elements on the page.
Images aren't modified in any way, they're just squeezed into a
smaller space with a higher DPI.

In 0.5.1 this setting only affected the calculation of image
dimensions. In 0.6.0 the setting will affect other calculations as
well (such as text size).

Let us know if you need any additional clarification.
-b
Reply all
Reply to author
Forward
0 new messages