You can use cb.setColorFill(Color.red) this should help.
Pozdrawiam,
Paweł Gawędzki
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Javier Del Amo
Sent: Friday, April 04, 2008 2:31 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] underline text
Good morning.
I´ve a question, and certainly I need some help.
I have used the ContentByte, and cb.lineTo (xxx, xxx). The result is a text
underlined with the width of the page. But this line is black and I would like
it was red.
Can anybody help me?
Thanks and greetings.
2008/4/3, 1T3XT info <[EMAIL PROTECTED]>:
Javier Del Amo wrote:
> Good morning.
>
> Is there any way to underline a chunk, phrase, or paragraph and whose
> width is the width of the paper?
I see this question was overlooked.
> The api said that the underline is the width of the chunk. Is
> it possible that this underlined has the width of the paper?
Yes, there's an example in chapter 7 of the book.
It uses onParagraph. You could easily adapt it to use
onGenericTag.
--
This answer is provided by 1T3XT BVBA
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar
------------------------------------------------------------------------------
Skandia Życie Towarzystwo Ubezpieczeń S.A.
ul. Cybernetyki 7, 02-677 Warszawa
Sąd Rejonowy dla m.st. Warszawy, XIII Wydział Gospodarczy
Krajowego Rejestru Sądowego Nr KRS 0000056463,
Regon: 016003836, NIP: 951-19-33-418
wysokość kapitału zakładowego: 46.000.000,00 PLN
wysokość kapitału wpłaconego: 46.000.000,00 PLN
------------------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar