Kirys wrote:
> Even tough i set the margins to 0,0,0,0 it still leave a little margin
> on the top of about 40 points.

When you add an image at an absolute position,
margins are not taken into account.

> JECImageResizer Resizer = new JECImageResizer(ot);
> Resizer.doResize (((JECImageFile)i.next()), os);


Apparently you are resizing the image.

> com.lowagie.text.Image I=com.lowagie.text.Image.getInstance(os.toByteArray());
> I.setAbsolutePosition(0,0);
> I.scaleToFit(ot.getMediaBoxWidth(),ot.getMediaBoxHeight());

After resizing, you do a scale to fit.
I think this combination of resizing and scaleToFit
causes your problem. You should use Occam's razor
on your code, and the problem will disappear.

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to