getVerticalPosition() is not reliable. If you require precise layout
place you objects at absolute positions using ColumnText, for example.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Vincent CAURIER
> Sent: Monday, April 16, 2007 8:55 AM
> To: [email protected]
> Subject: [iText-questions] [iText-Questions] Document : new
> page not wanted
>
> Hi,
>
> I want to add 2 tables to my Document. I check if there is
> enough space before the bottom margin with
> writer.getVerticalPosition(true). The size of my table is 164
> pixels. The bottom margin is 200 pixels. The cursor before I
> try to add my table is 385 pixels away from the bottom of the
> document. So if I add the table, the cursor will be 221
> pixels away from it, and it can be added on the current page.
> But when I add it, a new page is automatically created after
> it, and the cursor is 539 (beggining of my new page) instead
> of 221. Can you help me ? I don't know why a new page is
> created and why the cursor moves to the new page even if
> there is some place for my table.
>
> Thanks,
>
> Vincent CAURIER
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/