hi all,
i am struggling with the following.
A have a big chunk of dynamic text (from a db). From this text i am making a .pdf.
So i would like to limit the amount of outputted text as a page can run out of space.
I have tried to do it with search and replace. But the problem is that it counts only characters instead of characters in combination with whitespace and the number of lines.
There is space for 100 characters/spaces on each line, and a total of 38 lines on one page.
So i am thinking of something like this:
-
count all new lines represented by
-
count all characters/whitespaces dived to the number of lines to check if this fits the number of
(as it uses wordwap)
Anyone with bright ideas on how to approach this?
(btw. TextField.maxChars will not work as it's dynamic text...)