If you know the leading just set the height of the ColumnText to be a 
multiple of that.

Paulo

----- Original Message ----- 
From: "dayvidpow" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 13, 2008 8:05 PM
Subject: [iText-questions] Auto Truncating Paragraphs



I am adding several large paragraphs of text of varying length to a
ColumnText object. However, I would like the paragraphs that contains more
than 5 lines of text to be automatically truncated after 5 lines (i.e. only
the 1st 5 lines of text in the paragraph should be rendered to the
ColumnText).
My Questions:
1. Is there an existing iText API which will do this?   or
2. Would i have to extend the iText Paragragh class to do it? I know i would
have to take into consideration Font, font size, # of chars per line , etc
in order to calculate the available space.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to