Use ColumnText, it will treat all chunks as a single line of text.

Paulo 

-----Original Message-----
From: pdfengine [mailto:marlbor...@hotmail.com] 
Sent: Friday, May 20, 2011 4:00 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] How to add auto Hyphenation for paragraph (two 
chunks)?

I need to highlight some words by changing the font color in a paragraph. I
guess I can't do it in one single Chunk so I created several Chunks and
append them in a Paragraph. However, when I set the paragraph as
text-align-justified the problem comes. 

chunk.SetHyphenation(new HyphenationAuto("en", "US", 2, 2));
This piece code works well for a single chunk but I don't know how to make
it work in this case. 

Thanks!

http://itext-general.2136553.n4.nabble.com/file/n3538760/p1.jpg 

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-add-auto-Hyphenation-for-paragraph-two-chunks-tp3538760p3538760.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


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


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