Hello,

  I have a PdfPtable. I would like to have a hyphen appeared at the end of
row, if the word is not complete (wordwrap). For that i have the following
code, The wordwrap happens, but the hyphen is not visible. 

Phrase phrase;
phrase = PDFHelper.getPhrase(oplList[i]);

Chunk cellChunk = new Chunk(phrase.toString());
HyphenationAuto autoEN = new HyphenationAuto("en", "GB", 2, 2);
cellChunk.setHyphenation(autoEN);
phrase.add(cellChunk);

cell = new PdfPCell(phrase);
cell.setNoWrap(false);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_TOP);

oplListtable.addCell(cell)

Thanks and Regards
Anil

-- 
View this message in context: 
http://www.nabble.com/Wordwrap-with-a-hyphen-within-a-PdfPtable-tp20681710p20681710.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to