Anil A wrote:
> 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)
Please post a small working example that reproduces the problem.
An example like the ones you can find here:
http://1t3xt.info/examples/browse/
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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