My requirement actually is:
I will go on adding some paragraphs/chunks/phrases to the document.
These elements are of different fonts and sizes.
There is a requirement that I should break the page when the page
doesn't have sufficient number of lines for a text to fit in.
Something like this:
document.setLinesRequired(n);
//Add the paragraphs/chunks/phrases to the document.
Thanks,
Ramana.
-----Original Message-----
From: Bruno [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 12:57 PM
To: Jaladurgam, Ramana
Cc: '[EMAIL PROTECTED]'
Subject: Re: [iText-questions] Line height in a chunk
Quoting "Jaladurgam, Ramana" <[EMAIL PROTECTED]>:
> Hi,
> How to determine the line height a chunk can occupy? A chunk may
> occupy more than one line, but how to find out the height of each
> line?
A Chunk doesn't have a 'leading', so you can't define a line height for a
Chunk. You have to put the Chunk in a Phrase or a Paragraph.
Bruno
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions