Hi,
Appologies for the confusion.
I am using a similar example to the one from your link. Also, I'm using itextsharp and a C# console application.
The reason I got 790 was because my example was setting the YLine to be that much. I remove that statement and I got the following output for the folowing code:

code:

status = ct.Go();
Console.WriteLine(ct.YLine);


output:

62
62
174
Press any key to continue . . .

I'm not sure what those numbers mean, because the first two columns stretch over a whole page while the third one does not.

Best regards,
Ovidiu Lazar

Evozon Systems


1T3XT info wrote:
Ovidiu Lazar wrote:
  
Right, but that just returns 790, which is how much is set by default. 
But suppose the whole column is not filled, can I find out how much of 
it is occupied by text?
    

I don't understand your question.
If I run this example:
http://1t3xt.info/examples/browse/?page=example&id=120

The following information is written to the System.out:
Lines written:9 Y-position: 806.0 - 644.0
Lines written:6 Y-position: 644.0 - 536.0
Lines written:11 Y-position: 536.0 - 338.0
Lines written:14 Y-position: 338.0 - 86.0
Lines written:2 Y-position: 86.0 - 50.0

This is one of the examples for the 1st edition of iText in Action,
and it deals with getting control over what happens in ColumnText
as described in the book.

Are you saying that this example always returns the same Y and
the same number of lines (zero)???

You are confusing me.
  
------------------------------------------------------------------------------
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