When adding a Phrase with a long text string to a narrow PdfPCell the text is
automatically wrapped into several lines. In the project I am working on I
want the text to wrap, by floating out of the PdfPCell rather than by
expanding it. As I read the source code this is not possible what-so-ever.

As a workaround I have set a fixed height on the PdfPCell, causing the text
to wrap "into nowhere". My idea here is to then catch the overflown text, to
manually add it to the cell below. From the iText source I have found that
PdfLine.add() and PdfChunk.split() seems that seems to do the actual line
splitting, but unfortunately its all package private and I can not seem to
find any "entraces" other than compiling my own modified iText.

I have really tried to solve this one myself be investigating the iText
source code, but know solution has turned up yet. I hope someone here is
able to help me out. Alternative solutions to the original problem are very
welcome as well.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Capturing-the-overflow-from-PdfPCell-tf4304205.html#a12251649
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to