Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-29 Thread Stephan Michels
2008/1/28, Leonard Rosenthol [EMAIL PROTECTED]: On Jan 28, 2008, at 7:27 AM, Stephan Michels wrote: I can simply prevent orphans in a column if I check if the available height is smaller than e.g. 2 rows, then I put the paragraph into the next column. To prevent widows I have to adjust

[iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread Stephan Michels
Hi, is it possible to set the word spacing and character spacing, for example a paragraph? I have to increase the values to prevent orphans in a column layout. I inspected the source code and found that PdfDocument.writeLineToContent() changed the values for justified lines, but no way to change

Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread mister bean
See p. 347-350 in the book. The methods you're looking for are setCharacterSpacing() and setWordSpacing(). Best wishes, ---mr. bean Stephan Michels wrote: Hi, is it possible to set the word spacing and character spacing, for example a paragraph? I have to increase the values to

Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread Stephan Michels
2008/1/28, mister bean [EMAIL PROTECTED]: See p. 347-350 in the book. The methods you're looking for are setCharacterSpacing() and setWordSpacing(). Thanks, but AFAICS those values get lost if you use justified text and it is not possible to define additional space. Stephan.

Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread Leonard Rosenthol
But if you are justifying the text, what purpose do character word spacing serve? Leonard On Jan 28, 2008, at 4:13 AM, Stephan Michels wrote: 2008/1/28, mister bean [EMAIL PROTECTED]: See p. 347-350 in the book. The methods you're looking for are setCharacterSpacing() and

Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread Stephan Michels
Sorry, I mixed widows and orphans before. I always do :-/ 2008/1/28, Leonard Rosenthol [EMAIL PROTECTED]: But if you are justifying the text, what purpose do character word spacing serve? The jusitfy alignment distributes only the available space in the row. But I want more space to get an

Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread Leonard Rosenthol
On Jan 28, 2008, at 7:27 AM, Stephan Michels wrote: Sorry, I mixed widows and orphans before. I always do :-/ Yeah, big difference ;). The jusitfy alignment distributes only the available space in the row. But I want more space to get an additional row or two. Then I'd