Hi, I have a problem when i try to insert an image in a PDF Document.
The image has the next dimensions:
945 x 1417 px
or
8 x 12 cm
or
3,15 x 4,723 inches

with 300 px/inch

I have the next code:

Image imagenMarca = Image.getInstance("C:/temp/marca.jpg");
imagenMarca.scalePercent(24,24);
imagenMarca.setAbsolutePosition(100,200);
contentByte.addImage(imagenMarca);

I want the image to have the real size when it is printed on the pdf (8 x 12
cm).
I use the method scalePercent with a value of 24 (as it is said in the
tutorial), but when
I print the pdf, the image printed has the next dimensions:
7,5 x 11,25 cm
or
2,953 x 4,43

What's wrong in my code?

Thanks
---------------------------------------------------------
Juega y llévate una PS2 two: 
http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html
Ya.com ADSL Navega y habla 24h
ADSL 24h + Llamadas Nacionales y Locales 24h - 19,95 €/mes+IVA. Con Router + 
Cuota Alta ¡gratis!



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to