That's a problem of scaling. See the tutorial for an explanation on image
scaling and DPI.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Michael Korolyov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 19:11
Subject: [iText-questions] embedded image doesn't look good


Hello,

In my code:
                Image png = Image.getInstance(realPath +"/"+
getFileName());
                png.setAlignment(Element.ALIGN_CENTER);
                document.add(png);

As result in PDF this image is oversized and went out of page, where it
has right size in pixels and looks good in HTML.
What I'm missing?

Thank you.

Best Regards.
Michael.





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to