The no wrap is there essentially for the html
generation, for pdf it will overwrite the cells. It
won't change the cell's dimensions or the font size to
fit in the cell. If you want any of this you'll have
to measure the text width and act accordingly by
changing the cell's dimensions of the font size. You'l
soon find that, unlike html, the pdf page size won't
grow to fit the table. In other words, no wrap don't
make much sense when the page size is fixed.
Paulo
--- coolbaba <[EMAIL PROTECTED]> wrote:
>
> we are using iText library in our project for
> generating reports in the PDF
> format.
> I am facing problem with text wrap. The report looks
> following way
>
> I have 6 tables in the pdf file.
>
> Table table = new Table(6)
>
> 3 table are in the first row
> 1 table is in the second row and
> 2 tables are in the third row
>
> all these 6 tables are type of PdfPTable nested into
> outer table which is
> Table object
>
> The second table has 26 columns and each column
> width size is defined in
> float array.
>
> The maximum column width is 5.5f and minimum is 2f.
>
> PdfPTable width percentage is 100.
>
> left and right margin for outer table is 35,35. Data
> in the cells filled up
> from database. The data
> would be text or number.
>
> maximum length of the text is 50 and number is 12.
>
> my requirement is,
>
> The data in the cell should not be wrapped. all data
> should be in the single
> line.
>
> font is HELVETICA and size 8. all column headers are
> HELVETICA 8 BOLD.
>
> the problem is
>
> when i apply HELVETICA 8 font, the data in the cells
> getting wrapped. If i
> apply font size 5, the data is not wrapping.but font
> is small to read. I
> have tried to adjust width of other columns to avoid
> wrapping but it is
> wrapping the text in other cells.
>
> I did some research on this issues in the iText
> forums but did not get any
> correct solution.
>
> Should I get solution on this issues using iText
> libraries, if yes please
> let me know some piece of code or logic.
>
> If not should I assume that it is a bug in the iText
> library or this feature
> is not available.
>
> Please reply ASAP.
>
> Regards
>
> ND
>
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
-------------------------------------------------------------------------
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/