Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to create Chunks in a Paragraph in table cell
with different formats?

Duncan Groenewald

2007-06-20

Replies:


I am trying to create some text in a cell in a table with the first line of
text underlined and subsequent text normal.

I create a Chunk for the first line using a UNDERLINED font and then create
a Chunk for the remaining text using NORMAL text. I now create a
Paragraph(chunk1) with the first Chunk and then add the second Chunk to the
paragraph (add(chunk2)).

When the text is displayed it is all UNDERLINED. Any idea on what I am
doing wrong here ?

This, by the way, is all generating a RTF file not a PDF file.

Thanks in advance
--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.