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 -- View this message in context: http://www.nabble.com/PdfPTable-width-and-wrapping-problem-tf4622330.html#a13200624 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/
