Hi,

thanks for the response.

I'm aware of that the currentY parameter is not set in this case, but that's
not the issue. I'm more concerned about the x position of the image. The
case is that using the setAbsolutePosition method for the image results in
the same behavior as if I wouldn't use it at all. The image is placed in
both cases at the left boundary of the ColumnText.

Yannis Iliadis

2009/4/10 1T3XT info <[email protected]>

> 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
>
------------------------------------------------------------------------------
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