On Friday 23 March 2007 10:39, mékafi wrote:
> I would like to know if the setLeading(...) method works when creating a
> RTF document.
I've looked at the CVS history and setLeading should be supported.

> I have this code to do it :
> Phrase phDescriptionTexte = new Phrase("text",
> FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL, Color.BLACK));
> phDescriptionTexte.setLeading(7.0f);
> cell.add(phDescriptionTexte);
Try using a Paragraph instead of a Phrase. Phrase as a whole doesn't work too 
well in the RTF output, as in RTF the basic building block is a paragraph and 
some things don't fully work without the additional tags set by Paragraph.

Greetings,
Mark
-- 
In the plot, people came to the land; the land loved them; they worked and
struggled and had lots of children.  There was a Frenchman who talked funny
and a greenhorn from England who was a fancy-pants but when it came to the
crunch he was all courage.  Those novels would make you retch.
                -- Canadian novelist Robertson Davies, on the generic Canadian
                   novel.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgplPD00pwACk.pgp
Description: PGP signature

-------------------------------------------------------------------------
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/

Reply via email to