By flowing I understand laying out a paragraph into lines so that you
can fit a maximum number of words per line, according to the font
specified and destination region width.

One of your Phrase examples says "if you don't add a newline yourself,
all phrases are glued to each other", so how does a Phrase take a
newline as whitespace, if including newlines can be used to "separate"
Phrases?

Let's make this a little clearer: I have a Chunk with a newline in the
middle of it (the second line could fit entirely to the side of the
first line). You're saying that if I put this Chunk inside of a Phrase,
it will be layed out as a single line instead of as two separate lines
when I put it in a Paragraph? (And that if the second source line would
be a little longer, the split point would be calculated by iText,
instead of using the provided newline?)

Thanks

-----Original Message-----
From: bruno [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 15, 2005 12:59 PM
To: Mato Mira, Fernando (DIA EMEA/A)
Subject: Re: [iText-questions] flowing paragraphs?

[EMAIL PROTECTED] wrote:

>As I understand, a Phrase is just a collection of Chunks. I don't see
>how
>that would help.
>
>It's just 1 paragraph that I want to flow.
>  
>
Define 'flow'.
A Paragraph is the same as a Phrase, except for indentation and the 
addition of a newline.
So if you use a Phrase instead of a Paragraph, the whitespace will 
coalesce and newline will be whitespace. Am I missing something in your 
question?
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to