First of all it's right that I should have read the book completly. That's 
something that I really missed but I want you to know that I didn't refuse it.

I answer you because I think you should know that I did my best to resolve 
this leading problem.

First the examples that you sent me are the things that I tried, too. I used 
the setLeading and setSpacingBefore method with fixed values, too.
My request with this call was to find a good idea for a calculation method to 
set the leading and spacing of a paragraph that it would work fine with all 
different combinations of font sizes and font styles.

Now I would like you to explain my use case with iText:
I have got an user interface in that an user has different output methods. 
Each output method has its own font and style information. The problem is that 
not each output method can create a linebreak, so I could not directly use the 
Paragraph object. Instead of that I use the Chunk object to define the font 
and style and put this Chunk into a Phrase object.
There is a special output command that creates a linebreak. In this case I 
take all the created Phrase objects and add them into one big Paragraph 
object. Then I define the different Paragraph options like leading and spacing 
with the parameters of this special output command.
Therefore I need all these objects.

I think my mistake was that I just saw only my program algorithm and forgot to 
write my request correctly. I would like to apologize that I have wasted your 
time to explain me some iText basic parts. At my next request I try to explain 
my problem exactly so that it would be easier to understand what I want.

Regards Eric!





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to