ct.go(true) does exactly the same thing as the regular go() with
the exception that there's no output. This means that it consumes the text and
whatever is left will be used next. You'll have to create a new ColumnText or
use the copy constructor just for testing.
Paulo
Now a different problem has appeared. When I simulate the additions, it seems, that the part, that doesn't fit on the first page gets printed anyways on the second page, and the y-coordinate starts at the position afterwards. Maybe there's some conflict with the PageEvents? In order to ilustrate the effect I have added some code and the end-product. I don't think that this looks very sexy. Maybe there's some problem with working on the DirectContents all the time?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Caletka
Sent: Thursday, June 01, 2006 3:56 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Keeping things together
2006/6/1, Paulo Soares <[EMAIL PROTECTED]>:
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto: [EMAIL PROTECTED]] On
> Behalf Of bruno
> Sent: Thursday, June 01, 2006 8:44 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Keeping things together
>
> Michael Caletka wrote:
>
> > Sorry, AddElement DOES do the job! Somehow I must have been
> confused a
> > little.
>
> It is very important not to mix setText and addElement.
And don't confuse with addText either.
Paulo
> I explain this in my book (that will probably be released
> in November), but it's difficult to explain in a few sentences
> in a mail.
> br,
> Bruno
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.
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
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.
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions