On 27/10/2010 8:26, riffla wrote:
>
> OK.
> This is a short example
> .
>
> And this is another
> example.
>
> Looking at the two sentences above, the first one is the situation I want to
> avoid. Looking at the position of the the period, this character alone has
> been pushed to a new line, in contrast to the second one where the word
> 'example' joined the period on the new line.
>
> No line/row should start with a period - guess that summarizes it well.
>
> Hope this makes things more understandable

Yes,
if I understand correctly, you don't want the line to split on a space 
character. To avoid this, you should use the non-breaking space 
character instead of the normal space character.

You want the line to split only when there is a period. To achieve this 
you need to define '.' as a SplitCharacter.

All of this is done in section 2.2.4 of the second edition of "iText in 
Action" (but instead of '.', the split character is '|'). You can 
download chapter 2 for free from
http://affiliate.manning.com/idevaffiliate.php?id=223_212

An unwanted side-effect of this approach that lines that don't fit on 
the line will be split at an arbitrary place. See figure 2.6 where the 
word "Stop" is split into "Sto" and "p". That's not an iText problem; 
that's a problem caused by the requirements.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to