Iliadis Yannis wrote:
>         for(int i = 0; i < 100; i++) {
>              p.add(new Phrase("Test document"+i));
>                 ct.addElement(p);
>         }

Nothing happens here. Unless you do ct.go(); the currentY will just be 
the Y before the ct is added to the document.

>         float currentY=ct.getYLine();

The above line doesn't reflect the position AFTER the 100st Phrase, but 
BEFORE. You need ct.go() if you want the "current" position.

>         Image sfragida=new Image.getInstance(imageUrl1);
>         sfragida.scaleToFit(cm2Pnt(2.5f), cm2Pnt(2.5f));
>         sfragida.setAbsolutePosition(cm2Pnt(7.5f), currentY-cm2Pnt(3.5f));
>         ct.addElement(sfragida);

> The thing is that the images are place at the left boundary of the 
> columnText ignoring the position I'm setting to each image.

That's normal. Y hasn't changed, you have just added phrases to the 
column, but the column hasn't been added to the document yet.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to