[EMAIL PROTECTED] wrote:

    Hi;
I want to ask a general question about pdf file generator programs. When I try to generate a pdf file that contains an image, width and height of this image does not equal to original one,
also Itext API behave sma way.
Is there any solution to be able to insert an image to a pdf file with same dimension properties.

If you add an image to a document with document.add(), the image will be added with its correct dimensions. Maybe it looks different, because you are confusing dots, pixels, dpi, image size, etc...
See
http://article.gmane.org/gmane.comp.java.lib.itext.general/18240
or read this:
http://itextdocs.lowagie.com/tutorial/objects/images/#transformations
The bottom line is: your original image probably has a resolution different from 72dpi.
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to