Thanks a lot for your hint!

It works now. 

I need to call "setLeading" method on "ColumnText" object, instead of on
"Paragraph" object. 

Best Regards,
Tao


-----Original Message-----
From: 1T3XT info [mailto:[email protected]] 
Sent: April 14, 2010 11:21 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Ajust linespace for the wrapped line

Lu, Tao (MOH) wrote:
> Hi, All,
> 
> "Leading" seems not to be working in this case.

In which case?


Or do you mean you're working with ColumnText in text mode?
In that case, setting the leading for the elements won't work.
AS DOCUMENTED, you need to set the leading of the column.
Do you mean you're working with ColumnText in composite mode?
In that case, setting the leading for the column won't work.
AS DOCUMENTED, you need to set the leading of the elements.

Are you unsure if you're working in text mode or composite mode?
READ THE DOCUMENTATION!

Are you talking about "another case", please explain "which case."

> I have a long text to render using "Paragraph" with a fix width, it is

> automatically wrapped to the second line. This is good. But the line 
> space b/w the first line and second line is not adjustable by
"setLeading".
> 
> Any clue?

It works for me.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to