Hi, just add a RtfDirectContent.DIRECT_SOFT_LINEBREAK where you want the soft linebreak.
Greetings, Mark On 12.01.2007, at 17:06, Sebastien Arbogast wrote: > I'm trying to add a simple new line in a paragraph of my RTF > document but when I user Paragraph.add(Chunk.NEWLINE), I get a full > carriage return as if I had pressed [Enter] in Word, instead of > just a simple linefeed as if I had pressed [Shift+Enter] in Word. > > I've tried several combinations of \n and \r but I always get the > same result: 2 separate paragraphs instead of a new line inside one > paragraph. > > Does anyone know a trick to make it work? For example, does anyone > know the Unicode code of the [Shift+Enter] character? > > Best regards, > > -- > Sébastien Arbogast > > http://www.sebastien-arbogast.com > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
