Indeed, it's a good question. I worked on an example and I managed to reproduce the same functionality. But I still can't get it to return the height of the last page so i know where to continue adding text.. Here's my code:

                int status = 0;
                int column = 0;
                while ((status & ColumnText.NO_MORE_TEXT) == 0)
                {
                    if (column == 0) {  ct.SetColumns(left, right); column = 1; }
                    else { ct.SetColumns(left2, right2); column = 0; }

                    status = ct.Go();
                    ct.YLine = 790;
                    ct.Alignment = Element.ALIGN_JUSTIFIED;
                    status = ct.Go();
                    if ((column == 0) && ((status & ColumnText.NO_MORE_COLUMN) != 0))
                        doc.NewPage();
                }

                doc.Add(new Phrase("this should be at the end on a sigle column this should be at the end on a sigle column this should be at the end on a sigle column this should be at the end on a sigle column "));


the last line above, doc.Add(new Phrase( appears at the beginning of the last page).
Is there a way to know how much space the multicolumns have occupied on the page?

I saw that the text column has a property LinesWritten but it's 0 at the end.. Any ideas?

Best regards,
Ovidiu Lazar

Evozon Systems


1T3XT info wrote:
Ovidiu Lazar wrote:
  
has anyone tried adding elements after some multicolumn text?
    

A better question would be: is anyone still using MultiColumnText?
Maybe everybody uses ColumnText instead.
  



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to