On Wednesday 12 October 2005 12:36, Stefano wrote:
> I'm trying to use iText to write rtf and how it's suggested, i'm using
> RTF2Writer, but if i use color, background and other, it doesn't show them
> in rtf, while old RTFWriter does it. Do I make some mistake or do I stiil
> have to use RTFWriter?
Therw as a bug in the way the RtfWriter2 handled styles & colour if no 
fontname was set. I've committed a change to the CVS repository. You can 
either wait for the next release or modify your Paragraph initialisations 
like this:

Paragraph paragraph2 = new Paragraph("", new Font(Font.TIMES_ROMAN));

and replace the font name with the one you want to use.

Greetings,
Mark
-- 
You are going to have a new love affair.

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

Attachment: pgpdNY8MXtZyZ.pgp
Description: PGP signature

Reply via email to