Avatar

Not applicable

Hi all!

I have a PDF form with a flowed table. One row of this table contains long namings. So, the cells with these naming have several lines of text.

I have a script calculating table height as sum of all cell heights (I use it later to insert page breaks depending on some conditions).

The problem is that I can't exactly figure out the number of text lines in a cell only according to the text length (some really long words are transfered to the next line having half of the line blank space).

Is there a method I can use to get the number of text lines in a cell? Besides that, I need to know it before the layout:ready event.

Thanks in advance.