mediarché wrote:
hi all, i need to know the total number of text lines (how many text lines) are present in a paragraph.
If the width of your page is infinite, there is only one line in your paragraph. If the width of your page is zero, the number of lines in your paragraph is infinite ;-)
In other words: you are asking the wrong question. What you need is the ColumnText object. Define a column, add the Paragraph, look how much lines it takes. br, Bruno ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
