Thanks 1T3XT but if I only use one Chunk to store the whole paragraph like
your example, I will get the same result as yours.

The problem is I hope I can get the same good looking result as yours but I
also need to highlight the word "UMBWX". I used three chunks to store this
paragraph. I used Gray font color for this specific word,  used black font
colors for the sentence before and behind this word, and also added them in
a ColumnText. Then the problem comes and I think it is due to SetHyphenation
function only works for a single chunk and not for a columntext object.

thanks.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-add-auto-Hyphenation-for-paragraph-two-chunks-tp3538760p3540742.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to