leading (line spacing) comes in two forms, Fixed and Multiplied.  Multiplied
basically means, the larger the font, the larger the leading.  Fixed means
the same leading for any font size.

Usually (eg MS Word) Multiplied leading is 1.2f and fixed leading would be
0f, that would be eg (C#):-
paragraph.SetLeading(0f, 1.2f);

if you want fixed leading, then you want eg:-
paragraph.SetLeading(5.0f, 1.0f);




magesh rathnam wrote:
> 
> Hi,
> 
>   How can line spacing be set in Itext? In MSWord, we have an option of
> setting 1.5 line spacing which will space the 2 lines 1.5 lines instead of
> the normal 1 line. I'm looking for something similar. I was going through
> the manuals and it suggested using 'setLeading' command but that does also
> zoom the text which is not what I wanted. Can someone point me at the
> correct method for doing the line spacing. I'm programming in Java. Let me
> know if you have any questions. Appreciate your help!
> 
> -- 
> Thanks & Regards,
> Magesh
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Line-spacing-in-IText-tf3203178.html#a8895832
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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